transactions in multiple action rules

From: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: transactions in multiple action rules
Date: 2004-12-21 04:15:39
Message-ID: 20041221041539.GB16913@mtholyoke.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Do the multiple actions within a multiple action rule implicitly reside
within a transaction? I notice that if I brace my multiple actions with
BEGIN; and COMMIT;, that I get a syntax error, so I'm assuming that's
because they are superfluous in that context... ?

(I want to be sure that I can count on 'currval' returning the sequence
value returned by the previous action's 'nextval', so that I know I am
inserting the proper foreign key into a table after inserting a record
into the referenced table.)

--
Ron Peterson
Network & Systems Manager
Mount Holyoke College
http://www.mtholyoke.edu/~rpeterso

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-12-21 05:28:34 Re: transactions in multiple action rules
Previous Message Jamie Deppeler 2004-12-21 03:59:30 problems with date