Reduce lock levels of CREATE TRIGGER and some ALTER TABLE, CREATE RULE actions.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 2dbbda02e7e688311e161a912a0ce00cde9bb6fc
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2010-07-28T05:22:24Z
Releases: 9.1.0
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.

Files