#24051: Tables are not created in specified tablespace when DEFAULT_TABLESPACE is specified ----------------------------------------------+---------------------------- Reporter: douglasjreynolds | Owner: nobody Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.7 Severity: Normal | Keywords: Tablespace | model Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+---------------------------- When DEFAULT_TABLESPACE is specified in the project settings.py using database backend, django.db.backends.postgresql_psycopg2, the DDL does not include the 'TABLESPACE' keyword, and the table is created in the default PostgreSQL tablespace.
This does not affect the INDEX tablespace. The INDEXes are always created in the correct tablespace (both with just DEFAULT_TABLESPACE and/or DEFAULT_INDEX_TABLESPACE). The patch is based off of Django 1.7.1. I have attached a patch to correct this issue. It fixed the issue for me. -- Ticket URL: <https://code.djangoproject.com/ticket/24051> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/059.035b3e7f4055c7d7c58a51e55d88ca76%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.