>>>>> "AK" == Allan Kamau <hugebirdwings(at)yahoo(dot)com> writes:
AK> Hi all,
AK> How do I write transaction statements like 'BEGIN
AK> WORK'... in PLPGSQL.
AK> Also how do I write lock statements in the same.
AK> Thank you in advance.
AK> Allan Kamau
There is no possibility for this. See (from manual):
(3) You also cannot have transactions in PL/pgSQL procedures. The
entire function (and other functions called from
therein) is executed in a transaction and PostgreSQL rolls back
the results if something goes wrong. Therefore
only one BEGIN statement is allowed.
Anatoly K. Lasareff Email: tolik(at)aaanet(dot)ru
In response to
pgsql-admin by date
|Next:||From: Sébastien HEITZMANN||Date: 2001-06-14 07:52:58|
|Subject: Re: Transactions and Locks writing in PLPGSQL|
|Previous:||From: Tom Lane||Date: 2001-06-14 01:03:11|
|Subject: Re: High memory usage |