Improve behavior of concurrent ALTER <relation> .. SET SCHEMA.
authorRobert Haas <rhaas@postgresql.org>
Fri, 16 Dec 2011 00:02:58 +0000 (19:02 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 16 Dec 2011 00:02:58 +0000 (19:02 -0500)
commit1da5c119594e4fb07fb6a2c57f66642fa5e966fb
tree23ac08f5143d59519a6da5c2c7f45897617fd681
parent74a1d4fe7cc092076806767925d6f34ea347efde
Improve behavior of concurrent ALTER <relation> .. SET SCHEMA.

If the referrent of a name changes while we're waiting for the lock,
we must recheck permissons.  We also now check the relkind before
locking, since it's easy to do that long the way.

Patch by me; review by Noah Misch.
src/backend/commands/alter.c
src/backend/commands/tablecmds.c