X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9ED2830FB83 for ; Tue, 1 Jul 2003 00:41:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 16500-04 for ; Mon, 30 Jun 2003 21:41:11 -0300 (ADT) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by svr1.postgresql.org (Postfix) with ESMTP id AF39B30F536 for ; Mon, 30 Jun 2003 21:41:10 -0300 (ADT) Received: from [192.168.1.200] ([216.209.81.133]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030701004109.QPVZ20796.tomts6-srv.bellnexxia.net@[192.168.1.200]>; Mon, 30 Jun 2003 20:41:09 -0400 Subject: Re: Need help creating a BEFORE DELETE trigger From: Rod Taylor To: Michael A Nachbaur Cc: pgsql-sql@postgresql.org In-Reply-To: <200306301445.06935.mike@nachbaur.com> References: <200306301445.06935.mike@nachbaur.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WvVD4XXrF7gnhubKjvLB" Message-Id: <1057020087.28657.106.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 01 Jul 2003 00:41:28 +0000 X-Archive-Number: 200306/356 X-Sequence-Number: 14114 --=-WvVD4XXrF7gnhubKjvLB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > The problem I'm looking at is: could this cause a recursion problem, wher= e the=20 > cascading deletion will try to cause the whole thing to cascade again? H= ow It will only be able to delete the row (and cascade) once per row. The second time it tries to find the row, the row won't exist anymore. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-WvVD4XXrF7gnhubKjvLB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/ANi36DETLow6vwwRAucyAJ9CKMYQBDlZwPOUEShXW54q9Pm9dQCfZWrW RajxiAV1cK+Ixn9LWF4wKJc= =wTkP -----END PGP SIGNATURE----- --=-WvVD4XXrF7gnhubKjvLB--