Received: from correo.adinet.com.uy (unknown [206.99.44.28]) by postgresql.org (Postfix) with ESMTP id 08C1947549C for ; Thu, 1 Aug 2002 00:22:43 -0400 (EDT) Received: from localhost.localdomain (67.17.2.86) by correo.adinet.com.uy (5.5.052) id 3D3FFDF1000AC52D; Thu, 1 Aug 2002 01:22:24 -0300 Subject: Re: Multiple SQL statements within a function... From: Haroldo Stenger To: Tom Lane , pgsql-admin@postgresql.org In-Reply-To: <4230.1028174767@sss.pgh.pa.us> References: <1028144000.25315.52.camel@linda> <00e101c238cf$d03dec20$3c0aa8c0@nmtransfer.com> <4230.1028174767@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.7 Date: 01 Aug 2002 01:09:45 -0300 Message-Id: <1028174986.21143.12.camel@caverna> Mime-Version: 1.0 X-Archive-Number: 200208/2 X-Sequence-Number: 5117 El jue, 01-08-2002 a las 01:06, Tom Lane escribi=F3: > Yes. The function is necessarily invoked within an interactive query > (SELECT, UPDATE, or whatever) and that establishes the transaction > context. The function cannot create a transaction boundary, because > doing so would break whatever query it was called from. That will change with nested transactions support, won't it? Regards