Opened 3 years ago

Last modified 19 months ago

#20960 assigned New feature


Reported by: akaariai Owned by: e0ne
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 3 years ago by shai

Why in OPTIONS, and not in the main dictionary?

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

comment:2 Changed 3 years ago 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.

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

Last edited 3 years ago by aaugustin (previous) (diff)

comment:3 Changed 2 years ago by Naddiseo

  • Cc django@… added

comment:4 Changed 19 months ago by e0ne

  • Owner changed from nobody to e0ne
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.
Back to Top