Fix documentation template for CREATE TRIGGER.
authorKevin Grittner
Sat, 21 Jun 2014 14:17:36 +0000 (09:17 -0500)
committerKevin Grittner
Sat, 21 Jun 2014 14:17:36 +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 0f87b1fc96d3971b070b4fbda8ee1c752614bb88..097d65e8cd489aff76fee6a8c0bbb51756731e7d 100644 (file)
@@ -24,7 +24,7 @@ PostgreSQL documentation
 CREATE [ CONSTRAINT ] TRIGGER name { BEFORE | AFTER | INSTEAD OF } { event [ OR ... ] }
     ON table_name
     [ FROM referenced_table_name ]
-    { NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } }
+    [ NOT DEFERRABLE | [ DEFERRABLE ] { INITIALLY IMMEDIATE | INITIALLY DEFERRED } ]
     [ FOR [ EACH ] { ROW | STATEMENT } ]
     [ WHEN ( condition ) ]
     EXECUTE PROCEDURE function_name ( arguments )