diff options
| author | Simon Riggs <simon@2ndQuadrant.com> | 2015-04-05 11:37:08 -0400 |
|---|---|---|
| committer | Simon Riggs <simon@2ndQuadrant.com> | 2015-04-05 11:37:08 -0400 |
| commit | 0ef0396ae1687bf738d4703773d55467c36b2bcd (patch) | |
| tree | 451d674fdb2860511bb3f006bba2176263245c3f /doc/src/sgml/ref/alter_table.sgml | |
| parent | ca6805338fba010cc3f8b842905d7a62e280b7ab (diff) | |
| download | postgresql-0ef0396ae1687bf738d4703773d55467c36b2bcd.tar.gz | |
Reduce lock levels of some trigger DDL and add FKs
Reduce lock levels to ShareRowExclusive for the following SQL
CREATE TRIGGER (but not DROP or ALTER)
ALTER TABLE ENABLE TRIGGER
ALTER TABLE DISABLE TRIGGER
ALTER TABLE … ADD CONSTRAINT FOREIGN KEY
Original work by Simon Riggs, extracted and refreshed by Andreas Karlsson
New test cases added by Andreas Karlsson
Reviewed by Noah Misch, Andres Freund, Michael Paquier and Simon Riggs
Diffstat (limited to 'doc/src/sgml/ref/alter_table.sgml')
| -rw-r--r-- | doc/src/sgml/ref/alter_table.sgml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index 19baf2961a..6a82730a4b 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -406,6 +406,9 @@ ALTER TABLE ALL IN TABLESPACE <replaceable class="PARAMETER">name</replaceable> mode, and triggers configured as <literal>ENABLE ALWAYS</literal> will fire regardless of the current replication mode. </para> + <para> + This command acquires a <literal>SHARE ROW EXCLUSIVE</literal> lock. + </para> </listitem> </varlistentry> |
