-
- Downloads
Put back allow_system_table_mods check in heap_create().
This reverts commit a475c603. Erik Rijkers reported back in January 2013 that after the patch, if you do "pg_dump -t myschema.mytable" to dump a single table, and restore that in a database where myschema does not exist, the table is silently created in pg_catalog instead. That is because pg_dump uses "SET search_path=myschema, pg_catalog" to set schema the table is created in. While allow_system_table_mods is not a very elegant solution to this, we can't leave it as it is, so for now, revert it back to the way it was previously.
Showing
- src/backend/bootstrap/bootparse.y 2 additions, 1 deletionsrc/backend/bootstrap/bootparse.y
- src/backend/catalog/heap.c 16 additions, 2 deletionssrc/backend/catalog/heap.c
- src/backend/catalog/index.c 2 additions, 1 deletionsrc/backend/catalog/index.c
- src/include/catalog/heap.h 2 additions, 1 deletionsrc/include/catalog/heap.h
Loading
Please register or sign in to comment