Received: from smtp1b.mail.yahoo.com (smtp3.mail.yahoo.com [128.11.68.135]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0ONKWq84734 for ; Wed, 24 Jan 2001 18:20:32 -0500 (EST) (envelope-from janwieck@yahoo.com) Received: from j13.us.greatbridge.com (HELO jupiter.greatbridge.com) (216.54.52.153) by smtp.mail.vip.suc.yahoo.com with SMTP; 25 Jan 2001 00:16:09 -0000 X-Apparently-From: Received: (from janwieck@localhost) by jupiter.greatbridge.com (8.9.3/8.9.3) id SAA02766; Wed, 24 Jan 2001 18:00:03 -0500 From: Jan Wieck Message-Id: <200101242300.SAA02766@jupiter.greatbridge.com> Subject: Re: Rules and transactions In-Reply-To: <72660A24B978D411BB8A00B0D03DFE01151223@misty.packetvideo.com> from Brett Schwarz at "Jan 23, 2001 02:43:33 pm" To: Brett Schwarz Date: Wed, 24 Jan 2001 18:00:03 -0500 (EST) CC: "'pgsql-sql@postgresql.org'" X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/343 X-Sequence-Number: 1016 Brett Schwarz wrote: > If I have a rule, is the rule inside a tranaction along with the table that > it references. For example, if I have a rule that deletes an entry from > table B, whenever an entry in table A gets deleted, then is the delete for > table A and table B wrapped inside the same transaction? > > Same question I guess goes for triggers. Yes and yes. Both solutions are strictly covered by transactions. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com