X-Original-To: pgsql-general@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F043F475D17 for ; Fri, 21 Feb 2003 13:29:15 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 32775-01 for ; Fri, 21 Feb 2003 13:29:05 -0500 (EST) Received: from varsoon.wireboard.com (www.wireboard.com [216.151.155.101]) by postgresql.org (Postfix) with ESMTP id 0155F475C15 for ; Fri, 21 Feb 2003 13:26:23 -0500 (EST) Received: from doug by varsoon.wireboard.com with local (Exim 3.35 #1) id 18mHsK-0002MA-00; Fri, 21 Feb 2003 13:26:20 -0500 To: gearond@cvc.net Cc: pgsql-general@postgresql.org Subject: Re: transactions References: <2VFBXVPNTR31UZV8WRIE2YOM62B6E0.3e566b95@cal-lab> From: Doug McNaught Date: 21 Feb 2003 13:26:20 -0500 In-Reply-To: Dennis Gearon's message of "Fri, 21 Feb 2003 10:10:29 -0800" Message-ID: Lines: 14 User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/1332 X-Sequence-Number: 38086 Dennis Gearon writes: > 1/ Does a procedure take place all in one transaction? Yes. If you're not using BEGIN/END explicitly each query is its own transaction. > 2/ If I am updating/deleting/inserting into two tables, and both tables have triggers on them to > check the relationship of the data between the tables, any way of knowing which trigger will fire > first at the end of the transaction? I'm not sure about this one--do the docs say anything? -Doug