Re: PLPGSQL: Using Transactions and locks - Mailing list pgsql-general

From Alex Pilosov
Subject Re: PLPGSQL: Using Transactions and locks
Date
Msg-id Pine.BSO.4.10.10106131041570.17529-100000@spider.pilosoft.com
Whole thread Raw
In response to PLPGSQL: Using Transactions and locks  (Allan Kamau <hugebirdwings@yahoo.com>)
List pgsql-general
You cannot have nested transactions, thus you can't have BEGIN/COMMIT
inside your plpgsql function.

You can do locking, by doing this: EXECUTE ''LOCK foobar'';


On Wed, 13 Jun 2001, Allan Kamau wrote:

> Hi all,
> How do I write transaction statements like 'BEGIN
> WORK'... in PLPGSQL.
> Also how do I write lock statements in the same.
> Thank you in advance.
>
> Allan Kamau
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: Does PostgreSQL support EXISTS?
Next
From: "C. R. Oldham"
Date:
Subject: pg_dump problem