1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Put back allow_system_table_mods check in heap_create().

This reverts commit a475c60367.

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.
This commit is contained in:
Heikki Linnakangas
2013-06-03 17:22:31 +03:00
parent f129615fe7
commit 15386281a6
4 changed files with 22 additions and 5 deletions

View File

@@ -46,7 +46,8 @@ extern Relation heap_create(const char *relname,
char relkind,
char relpersistence,
bool shared_relation,
bool mapped_relation);
bool mapped_relation,
bool allow_system_table_mods);
extern Oid heap_create_with_catalog(const char *relname,
Oid relnamespace,