Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6C3A81337B5A for ; Fri, 3 Dec 2010 03:36:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 82430-08 for ; Fri, 3 Dec 2010 07:36:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id EA9EF1337B47 for ; Fri, 3 Dec 2010 03:36:08 -0400 (AST) Received: by eye27 with SMTP id 27so4823969eye.19 for ; Thu, 02 Dec 2010 23:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:organization:x-mailer :mime-version:content-type; bh=Hv/1ey2gBBJsyYEB8u4YHy4BqzNjmBkSXYU645ZY6Tc=; b=gZOQZ9PXpmXzgL76QD08xBWFdmkTOtLFTgmRiGjhott8r9mS/YX0iFTw6BR1wiBJf+ q7eXxP6/cAHRwh91Iu5UrKHcLGDBXUaxcyx55FLIdzE7meOSoVRT+SXR04xLg3urztMh Rr2Nt6SVqmNcdxiDUheSNf+DR2uRmbSwWId/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:x-mailer:mime-version:content-type; b=wKW8skhBE8fUkApeQGxmFQFLXPrXB4ZuWGq9blHmDprqbJTaiXGIlsVJMLzpAvbunu RR2TKfIdiSLEzUcSbftGt2BeMLMZFa7vHueEPRk6wR1uQWJohu9S4cOPBxyTh4HhhSMh rAMV2JqZK14O+tCJnlqhQ2TlyQPlF9TaoCalA= Received: by 10.213.26.15 with SMTP id b15mr160157ebc.47.1291361767508; Thu, 02 Dec 2010 23:36:07 -0800 (PST) Received: from avers ([213.108.35.158]) by mx.google.com with ESMTPS id y5sm1220910eeh.22.2010.12.02.23.36.06 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Dec 2010 23:36:06 -0800 (PST) Date: Fri, 3 Dec 2010 10:35:47 +0300 From: Konstantin Nikiforov To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: Bug: table inheritance. Trigger before DELETE for each statement is ignored Message-ID: <20101203103547.48943eea@avers> In-Reply-To: <15326.1291348331@sss.pgh.pa.us> References: <20101202232343.02f9246c@alkaida> <15326.1291348331@sss.pgh.pa.us> Organization: AversImage X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/MVI1oAB/Y9HF17+5IaHI4pm"; protocol="application/pgp-signature" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201012/11 X-Sequence-Number: 28817 --Sig_/MVI1oAB/Y9HF17+5IaHI4pm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. >=20 > 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". =20 This behaviour conflicts with: > So the designed behavior is > that only the named target table has its statement triggers fired. --Sig_/MVI1oAB/Y9HF17+5IaHI4pm Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJM+J3TAAoJEBSj2gK+1nmKx7wP/2eTAJSho+yQmJ2gJHYUVTOT tWBwSa37fzh1xulgH3i+G3pU93xVXkajBntM9ia/YIZQpnP/Hy4npH9KbmQGd8D6 EWAGGtVYYQDwgX3LU9Slz2vRJbz8SUDzDpfR4DIk+sXtq++I+Ecu5R32ha6iV/mT 4wtjVU5AveFWtNwso5AkIvKbowVABf2ZimbBTTzbe7JVJbIH7mCfx3wXsaMHels4 ePwh3kyL5Yb97XXcbA4dUIrj6xRlChAbgzkpSZ4r+c2O3SrsUbDWtAirtC2Et48s sTx69OPuQzKbzI7d/oV8nVQoh2SKMeZ9dmucULoxwwW9olNwmkfnFTuPzVC63OyV 7vrA0Z4SinBYFqQzQNrR6jwE1hQ4tgUiLPqpjPKM0/emKSYLfZB2Qj0U1WJjIUrl aA2yJihj5ZErhyaIvT3Kjq5Cokswko1cYM4Da4ClfdA4wmUXX/qqJQvRG1I9BwMx Sewm+pWSbGs8eG56sCW0lxgXXUeoVSBR2ENl6xr7txrCIPEHWk5BOEiXzEcOW3Oo sXlbzKqa8rgLJcF8ZpCf78NUJQdQms9+k3KoRpen9KZ1M1x3uMfS9HBNmvYiuNl2 PyBF8e6ILU23i5+hNG+emmTZ5uQiBoWT9hgi23YMHYM3KrLKrEXoLGkrCDH6hf4R RwTnkZiRvVYv9pEMUwG7 =eML+ -----END PGP SIGNATURE----- --Sig_/MVI1oAB/Y9HF17+5IaHI4pm--