]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't allow CREATE TABLE AS to put relations in pg_global.
authorRobert Haas <rhaas@postgresql.org>
Wed, 21 Mar 2012 16:38:34 +0000 (12:38 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 21 Mar 2012 16:38:56 +0000 (12:38 -0400)
commitd4a68363aff508a1179cd5e3f45f61a08104a1e1
tree04850595aac78c68f596d22a655121c9d8078692
parent4ba41df89605371b5be732b9682bee2bfaf52251
Don't allow CREATE TABLE AS to put relations in pg_global.

This was never intended to be allowed, and is blocked for an ordinary
CREATE TABLE, but CREATE TABLE AS slipped through the cracks.  This
commit won't do anything to fix existing cases where this has loophole
has been exploited, but it still seems prudent to lock it down going
forward.

Back-branch commit only, as this problem has been refactored away
on the master branch.

Andres Freund
src/backend/executor/execMain.c