pgsql: Improve behavior of concurrent ALTER .. SET SCHEMA. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Improve behavior of concurrent ALTER .. SET SCHEMA.
Date
Msg-id E1RbLGo-0006Dx-MP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1da5c119594e4fb07fb6a2c57f66642fa5e966fb

Modified Files
--------------
src/backend/commands/alter.c     |    1 -
src/backend/commands/tablecmds.c |  113 +++++++++++++++++++++++--------------
2 files changed, 70 insertions(+), 44 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Don't leave regress_test_role_super lying around.
Next
From: Robert Haas
Date:
Subject: pgsql: Improve behavior of concurrent rename statements.