diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-06-14 09:58:53 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-06-14 09:58:53 -0400 |
commit | a475c6036752c26dca538632b68fd2cc592976b7 (patch) | |
tree | d6396fceca29a112638d621ea71eed61282ada00 /src/include | |
parent | d2c86a1ccd17145eeed2377ff7930e2ccbf5869e (diff) | |
download | postgresql-a475c6036752c26dca538632b68fd2cc592976b7.tar.gz postgresql-a475c6036752c26dca538632b68fd2cc592976b7.zip |
Remove misplaced sanity check from heap_create().
Even when allow_system_table_mods is not set, we allow creation of any
type of SQL object in pg_catalog, except for relations. And you can
get relations into pg_catalog, too, by initially creating them in some
other schema and then moving them with ALTER .. SET SCHEMA. So this
restriction, which prevents relations (only) from being created in
pg_catalog directly, is fairly pointless. If we need a safety mechanism
for this, it should be placed further upstream, so that it affects all
SQL objects uniformly, and picks up both CREATE and SET SCHEMA.
For now, just rip it out, per discussion with Tom Lane.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/heap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/catalog/heap.h b/src/include/catalog/heap.h index bc98d5d6fc1..bc8c63a15e1 100644 --- a/src/include/catalog/heap.h +++ b/src/include/catalog/heap.h @@ -46,8 +46,7 @@ extern Relation heap_create(const char *relname, char relkind, char relpersistence, bool shared_relation, - bool mapped_relation, - bool allow_system_table_mods); + bool mapped_relation); extern Oid heap_create_with_catalog(const char *relname, Oid relnamespace, |