Don't allow CREATE TABLE AS to put relations in pg_global.

Robert Haas <rhaas@postgresql.org>

Commit: d4a68363aff508a1179cd5e3f45f61a08104a1e1
Author: Robert Haas <rhaas@postgresql.org>
Date: 2012-03-21T16:38:56Z
Releases: 9.0.8
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

Files

PathChange+/−
src/backend/executor/execMain.c modified +7 −0