Trigger transactions

From: "Postgres User" <postgres(dot)developer(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Trigger transactions
Date: 2008-03-22 01:42:13
Message-ID: b88c3460803211842i22a2612vc6aaee313afc935f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

if a function includes this SQL:

Update Table1 Set field_1 = 'ab';
Insert Table2(field_2) VALUES('cd');

and I create an update trigger on Table1:

Create Trigger Table1_Update AFTER Update
On Table1 FOR EACH ROW:

Select * From Table2

will the Select statement in the trigger see the row that I inserted
in the main function?
if not, is there another way to write these statements to that it does?

thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Postgres User 2008-03-22 02:42:52 Re: Trigger transactions
Previous Message Erik Jones 2008-03-22 00:59:55 Re: Postgresql partitioning