git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d2c86a1) | patch
Remove misplaced sanity check from heap_create().
2012年6月14日 13:58:53 +0000 (09:58 -0400)
2012年6月14日 13:58:53 +0000 (09:58 -0400)
commit a475c6036752c26dca538632b68fd2cc592976b7
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.
src/backend/bootstrap/bootparse.y diff | blob | blame | history
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/catalog/index.c diff | blob | blame | history
src/include/catalog/heap.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /