Reduce lock levels of CREATE TRIGGER and some ALTER TABLE, CREATE RULE actions.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 28 Jul 2010 05:22:24 +0000 (05:22 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 28 Jul 2010 05:22:24 +0000 (05:22 +0000)
commit2dbbda02e7e688311e161a912a0ce00cde9bb6fc
treeadf4f2ca8c477550f19bd6362d0b6fa4ae19f68b
parent133924e13e004db8979424bf5436e21b0a09a069
Reduce lock levels of CREATE TRIGGER and some ALTER TABLE, CREATE RULE actions.
Avoid hard-coding lockmode used for many altering DDL commands, allowing easier
future changes of lock levels. Implementation of initial analysis on DDL
sub-commands, so that many lock levels are now at ShareUpdateExclusiveLock or
ShareRowExclusiveLock, allowing certain DDL not to block reads/writes.
First of number of planned changes in this area; additional docs required
when full project complete.
doc/src/sgml/mvcc.sgml
src/backend/catalog/pg_shdepend.c
src/backend/commands/alter.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/backend/commands/typecmds.c
src/backend/parser/parse_utilcmd.c
src/backend/rewrite/rewriteDefine.c
src/backend/utils/adt/ri_triggers.c
src/include/commands/tablecmds.h