Re: PLPGSQL: Using Transactions and locks

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема Re: PLPGSQL: Using Transactions and locks
Дата
Msg-id Pine.BSO.4.10.10106131041570.17529-100000@spider.pilosoft.com
обсуждение исходный текст
Ответ на PLPGSQL: Using Transactions and locks  (Allan Kamau <hugebirdwings@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Does PostgreSQL support EXISTS?
Следующее
От: "C. R. Oldham"
Дата:
Сообщение: pg_dump problem