From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-admin@postgresql.org>
Subject: Re: Multiple SQL statements within a function...
Date: Wed, 31 Jul 2002 19:03:31 -0700 (PDT)
Message-ID: <20020801020331.47566.qmail@web40002.mail.yahoo.com> (raw)
>
> --- Marc Mitchell <marcm@eisolution.com> wrote:
> Am assume the MST is implicit but have been
> lookingfor answer in onlinedocs and have been
> unable to confirm one way or the other. Can anyone
> sight a documentation reference?
From the PostgreSQL 7.1.2 Manual section 23.2.
(Structure of PL/pgSQL)
"It is important not to confuse the use of BEGIN/END
for grouping statements in PL/pgSQL with the database
commands for transaction control. PL/pgSQL's BEGIN/END
are only for grouping; they do not start or end a
transaction. Functions and trigger procedures are
always executed within a transaction established by
an outer query --- they cannot start or commit
transactions, since PostgreSQL does not have nested
transactions. "
Hope that helps,
ludwig.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
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-admin@postgresql.org
Cc: lud_nowhere_man@yahoo.com
Subject: Re: Multiple SQL statements within a function...
In-Reply-To: <20020801020331.47566.qmail@web40002.mail.yahoo.com>
References: <20020801020331.47566.qmail@web40002.mail.yahoo.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