-
- Downloads
Move TablespaceCreateDbspace() call into smgrcreate(), which is where it
probably should have been to begin with; this is to cover cases like needing to recreate the per-db directory during WAL replay. Also, fix heap_create to force pg_class.reltablespace to be zero instead of the database's default tablespace; this makes the world safe for CREATE DATABASE to handle all tables in the default tablespace alike, as per previous discussion. And force pg_class.reltablespace to zero when creating a relation without physical storage (eg, a view); this avoids possibly having dangling references in this column after a subsequent DROP TABLESPACE.
Showing
- src/backend/catalog/heap.c 28 additions, 29 deletionssrc/backend/catalog/heap.c
- src/backend/commands/tablespace.c 12 additions, 4 deletionssrc/backend/commands/tablespace.c
- src/backend/storage/smgr/smgr.c 15 additions, 1 deletionsrc/backend/storage/smgr/smgr.c
- src/include/catalog/heap.h 2 additions, 4 deletionssrc/include/catalog/heap.h
- src/include/commands/tablespace.h 2 additions, 2 deletionssrc/include/commands/tablespace.h
Loading
Please register or sign in to comment