Commit b2188575 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix example on creating a trigger with a transition table.

Yugo Nagata

Discussion: https://www.postgresql.org/message-id/20170417180921.3047f3b0.nagata@sraoss.co.jp
parent 8efd1e08
......@@ -531,8 +531,8 @@ CREATE TRIGGER view_insert
<programlisting>
CREATE TRIGGER transfer_insert
AFTER INSERT ON transfer
FOR EACH STATEMENT
REFERENCING NEW TABLE AS inserted
FOR EACH STATEMENT
EXECUTE PROCEDURE check_transfer_balances_to_zero();
</programlisting>
......@@ -543,8 +543,8 @@ CREATE TRIGGER transfer_insert
<programlisting>
CREATE TRIGGER paired_items_update
AFTER UPDATE ON paired_items
FOR EACH ROW
REFERENCING NEW TABLE AS newtab OLD TABLE AS oldtab
FOR EACH ROW
EXECUTE PROCEDURE check_matching_pairs();
</programlisting>
</para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment