Skip to content

Commit

Permalink
Polish trigger documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
petergeoghegan committed Apr 25, 2015
1 parent 32d1c4d commit 0d81bd9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/src/sgml/trigger.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@
idempotent). Note that statement-level <command>UPDATE</command>
triggers are executed when <literal>ON CONFLICT UPDATE</> is
specified, regardless of whether or not any rows were affected by
the <command>UPDATE</command>. An <command>INSERT</command> with
an <literal>ON CONFLICT UPDATE</> clause will execute
statement-level <literal>BEFORE</> <command>INSERT</command>
triggers first, then statement-level <literal>BEFORE</>
<command>UPDATE</command> triggers, followed by statement-level
<literal>AFTER</> <command>UPDATE</command> triggers and finally
statement-level <literal>AFTER</> <command>INSERT</command>
triggers. <literal>ON CONFLICT UPDATE</> is not supported on
views (Only <literal>ON CONFLICT IGNORE</> is supported on
updatable views); therefore, unpredictable interactions with
<literal>INSTEAD OF</> triggers are not possible.
the <command>UPDATE</command> (and regardless of whether the
alternative <command>UPDATE</command> path was ever taken). An
<command>INSERT</command> with an <literal>ON CONFLICT UPDATE</>
clause will execute statement-level <literal>BEFORE</>
<command>INSERT</command> triggers first, then statement-level
<literal>BEFORE</> <command>UPDATE</command> triggers, followed by
statement-level <literal>AFTER</> <command>UPDATE</command>
triggers and finally statement-level <literal>AFTER</>
<command>INSERT</command> triggers. <literal>ON CONFLICT
UPDATE</> is not supported on views (only <literal>ON CONFLICT
IGNORE</> is supported on updatable views).
</para>

<para>
Expand Down

0 comments on commit 0d81bd9

Please sign in to comment.