[Django] #20960: DEFAULT_TABLESPACE should be part of DATABASES

39 views
Skip to first unread message

Django

unread,
Aug 23, 2013, 8:35:16 AM8/23/13
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: New | Status: new
feature | Version: master
Component: Database | Keywords:
layer (models, ORM) | Has patch: 0
Severity: Normal | Needs tests: 0
Triage Stage: Accepted | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently DEFAULT_TABLESPACE is settings global. Of course, this short of
thing is better set per-database. So, lets move DEFAULT_TABLESPACE and
DEFAULT_INDEX_TABLESPACE to `DATABASES['some_alias']['OPTIONS']`.

This also allows those databases that do not support tablespaces to throw
errors if tablespace is defined in options.

--
Ticket URL: <https://code.djangoproject.com/ticket/20960>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 9, 2013, 10:52:03 AM9/9/13
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by shai):

Why in `OPTIONS`, and not in the main dictionary?

My understanding is that `OPTIONS` is for backend-specific parameters.

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:1>

Django

unread,
Sep 9, 2013, 12:49:43 PM9/9/13
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by aaugustin):

Well, it depends if tablespaces are a standard concept in SQL (eg.
mentioned in the ISO standard) or just something that happens to be
implemented by several databases.

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:2>

Django

unread,
Jun 18, 2014, 5:42:14 PM6/18/14
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Naddiseo):

* cc: django@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:3>

Django

unread,
Dec 21, 2014, 5:19:54 PM12/21/14
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: e0ne
Type: New feature | Status: assigned

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by e0ne):

* owner: nobody => e0ne
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:4>

Django

unread,
Feb 23, 2024, 1:28:27 PM2/23/24
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: bcail
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bcail):

* cc: bcail (added)
* has_patch: 0 => 1
* owner: nobody => bcail
* status: new => assigned

Comment:

I opened a [https://github.com/django/django/pull/17902 draft PR].

Some test runs are failing with the following error:
`django.utils.deprecation.RemovedInDjango60Warning: The DEFAULT_TABLESPACE
setting is deprecated.`
How should I handle that error with the deprecated settings?

Django

unread,
Feb 25, 2024, 11:17:47 PM2/25/24
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: bcail
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:5>

Django

unread,
Oct 29, 2024, 4:51:40 PM10/29/24
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bcail):

* owner: bcail => (none)
* status: assigned => new

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:6>

Django

unread,
Jan 16, 2026, 11:48:26 AM (3 days ago) Jan 16
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Alok Raj):

I am planning to work further to improve the existing patch in PR #17902
by resolving the merge conflicts and addressing the remaining test
failures related to deprecation warnings.
--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:7>

Django

unread,
Jan 17, 2026, 12:33:01 PM (2 days ago) Jan 17
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: Alok Raj
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Alok Raj):

* has_patch: 1 => 0
* owner: (none) => Alok Raj
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:8>

Django

unread,
Jan 18, 2026, 11:05:24 AM (14 hours ago) Jan 18
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: Alok Raj
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Alok Raj):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/20960#comment:9>

Django

unread,
Jan 18, 2026, 11:20:37 AM (14 hours ago) Jan 18
to django-...@googlegroups.com
#20960: DEFAULT_TABLESPACE should be part of DATABASES
-------------------------------------+-------------------------------------
Reporter: Anssi Kääriäinen | Owner: Alok Raj
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Alok Raj):

* Attachment "Screenshot (573).png" added.
Reply all
Reply to author
Forward
0 new messages