Received: from dg.eisolution.com (dsl-232-15.speedsite.com [206.126.232.15]) by postgresql.org (Postfix) with ESMTP id 8E921475DC5 for ; Wed, 31 Jul 2002 16:09:39 -0400 (EDT) Received: from marcmdelltop ([64.73.35.72]) (authenticated) by dg.eisolution.com (8.11.6/8.11.6) with ESMTP id g6VKDwT09923 for ; Wed, 31 Jul 2002 15:13:58 -0500 Message-ID: <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com> From: "Marc Mitchell" To: "pgsql-admin" References: <1028144000.25315.52.camel@linda> Subject: Multiple SQL statements within a function... Date: Wed, 31 Jul 2002 15:21:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Archive-Number: 200207/429 X-Sequence-Number: 5113 If you have multiple SQL statements within a single SQL or PL/PGSQL function, are they automatically treated as a single multi-statement transaction or does this require you to put BEGIN/COMMIT statements within your function which itself would require you to be cognoscente of the transactional state of your current database session. Am assume the MST is implicit but have been looking for answer in online docs and have been unable to confirm one way or the other. Can anyone sight a documentation reference? Thanks, Marc Mitchell Enterprise Information Solutions, Inc. marcm@eisolution.com