]> granicus.if.org Git - postgresql/commitdiff
Fix documentation template for CREATE TRIGGER.
authorKevin Grittner <kgrittn@postgresql.org>
Sat, 21 Jun 2014 14:17:52 +0000 (09:17 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Sat, 21 Jun 2014 14:17:52 +0000 (09:17 -0500)
By using curly braces, the template had specified that one of
"NOT DEFERRABLE", "INITIALLY IMMEDIATE", or "INITIALLY DEFERRED"
was required on any CREATE TRIGGER statement, which is not
accurate.  Change to square brackets makes that optional.

Backpatch to 9.1, where the error was introduced.

doc/src/sgml/ref/create_trigger.sgml

index aed07a9dfb35966cca2070f36adca5e915a45995..bb24a2d037765e92ae99722755aadcb5ed046ac7 100644 (file)
@@ -24,7 +24,7 @@ PostgreSQL documentation
 CREATE [ CONSTRAINT ] TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTER | INSTEAD OF } { <replaceable class="PARAMETER">event</replaceable> [ OR ... ] }
     ON <replaceable class="PARAMETER">table</replaceable>
     [ FROM <replaceable class="parameter">referenced_table_name</replaceable> ]
-    { NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } }
+    [ NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } ]
     [ FOR [ EACH ] { ROW | STATEMENT } ]
     [ WHEN ( <replaceable class="parameter">condition</replaceable> ) ]
     EXECUTE PROCEDURE <replaceable class="PARAMETER">function_name</replaceable> ( <replaceable class="PARAMETER">arguments</replaceable> )