Re: After delete trigger problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Teemu Juntunen" <teemu(dot)juntunen(at)e-ngine(dot)fi>
Cc: "PostgreSQL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: After delete trigger problem
Date: 2008-11-07 19:23:22
Message-ID: 22267.1226085802@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Teemu Juntunen" <teemu(dot)juntunen(at)e-ngine(dot)fi> writes:
> CREATE TRIGGER td_y AFTER DELETE ON chlid FOR EACH ROW EXECUTE PROCEDURE fn_td_y();

> It seems that SELECT results to null, so the master has already deleted the row. Is this intended and how can I solve this?

Your trigger is firing after the RI triggers. If you want it to fire
before, give it a name that is before them (in ASCII order).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2008-11-07 19:24:58 Re: After delete trigger problem
Previous Message Teemu Juntunen 2008-11-07 18:57:26 After delete trigger problem