Opened 7 years ago

Last modified 6 years ago

#20960 assigned New feature


Reported by: Anssi Kääriäinen Owned by: Ivan Kolodyazhny
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: django@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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.

Change History (4)

comment:1 Changed 7 years ago by Shai Berger

Why in OPTIONS, and not in the main dictionary?

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

comment:2 Changed 7 years ago by Aymeric Augustin

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.

EDIT: a quick search in SQL 2003 gives no hit for "tablespace", supporting Anssi's original proposal.

Last edited 7 years ago by Aymeric Augustin (previous) (diff)

comment:3 Changed 6 years ago by Richard Eames

Cc: django@… added

comment:4 Changed 6 years ago by Ivan Kolodyazhny

Owner: changed from nobody to Ivan Kolodyazhny
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top