From: Konstantin Nikiforov <helllamer@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Bug: table inheritance. Trigger before DELETE for each statement is ignored
Date: Fri, 3 Dec 2010 10:35:47 +0300
Message-ID: <20101203103547.48943eea@avers> (raw)
In-Reply-To: <15326.1291348331@sss.pgh.pa.us>
References: <20101202232343.02f9246c@alkaida>
<15326.1291348331@sss.pgh.pa.us>
Ok, thanks, roger you.
But one question still cause my misunderstanding:
> > 2. If i create trigger FOR EACH STATEMENT, it will work ok for
> > insert, update and delete.
>
> You mean FOR EACH ROW, no?
Yes, confused. FOR EACH ROW.
"FOR EACH ROW"-trigger successfully fires in inherited
table "xtest_inh", then we deleteting row from PARENT table "xtest".
This behaviour conflicts with:
> So the designed behavior is
> that only the named target table has its statement triggers fired.
Attachments:
signature.asc (application/pgp-signature, 835B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: helllamer@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Bug: table inheritance. Trigger before DELETE for each statement is ignored
In-Reply-To: <20101203103547.48943eea@avers>
References: <20101202232343.02f9246c@alkaida> <15326.1291348331@sss.pgh.pa.us> <20101203103547.48943eea@avers>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox