diff options
| author | Heikki Linnakangas | 2013-06-03 14:22:31 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2013-06-03 14:22:31 +0000 |
| commit | 15386281a62071f322155b74cb32c2fea92e8350 (patch) | |
| tree | 4899cf699d4593ecb27672bae9ec3c6df8c45101 /src/include | |
| parent | f129615fe72f70868a86862b663dd7d78dd5cb71 (diff) | |
Put back allow_system_table_mods check in heap_create().
This reverts commit a475c6036752c26dca538632b68fd2cc592976b7.
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/heap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/catalog/heap.h b/src/include/catalog/heap.h index 26266e17d58..b43765b026a 100644 --- a/src/include/catalog/heap.h +++ b/src/include/catalog/heap.h @@ -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, |
