]> granicus.if.org Git - postgresql/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:39:24 +0000 (12:39 -0400)
commit596e16320e9638d46ae640b6fddde6cf9cadb93c
treef27f761b9d656340e128aea2ff445bc875e4901f
parent11d7d11e53bfe02091cfafec5f716776acdaeeca
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