Re: Multiple SQL statements within a function...

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: PostgreSQL Mailing List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Multiple SQL statements within a function...
Date: 2002-08-01 02:03:31
Message-ID: 20020801020331.47566.qmail@web40002.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


>
> --- Marc Mitchell <marcm(at)eisolution(dot)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

Browse pgsql-admin by date

  From Date Subject
Next Message cyz62578800 2002-08-01 02:13:27 What&nbsp; used&nbsp; so&nbsp; many&nbsp; spaces&nbsp; in&nbsp; PostgreSQL&nbsp; data&nbsp; folder?
Previous Message Tim Ellis 2002-07-31 20:41:14 tedia2sql 1.2.2 Released