From: Alex Pilosov <alex@pilosoft.com>
To: Daniel Åkerud <zilch@home.se>
Cc: PostgreSQL-general <pgsql-general@postgresql.org>
Subject: Re: Transactions within a function
Date: Fri, 6 Jul 2001 09:47:17 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10107060946250.7004-100000@spider.pilosoft.com> (raw)
In-Reply-To: <000a01c10618$ca7f0bb0$c901a8c0@automatic100>
On Fri, 6 Jul 2001, [iso-8859-1] Daniel Åkerud wrote:
> Do the BEGIN and END in a function also indicate that it is done in a
> transaction? Or can you put another BEGIN TRANSACTION; END
> TRANSACTION; in there?
No. Functions cannot start/stop transactions, as postgresql does not
currently support nested transactions. BEGIN/END are pascalish/adaish
things identical to { and } in C.
-alex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alex@pilosoft.com, zilch@home.se, pgsql-general@postgresql.org
Subject: Re: Transactions within a function
In-Reply-To: <Pine.BSO.4.10.10107060946250.7004-100000@spider.pilosoft.com>
References: <000a01c10618$ca7f0bb0$c901a8c0@automatic100> <Pine.BSO.4.10.10107060946250.7004-100000@spider.pilosoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox