Re: Does PERFORM hold a lock?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Does PERFORM hold a lock?
Дата
Msg-id 20090811201048.GE16362@alvh.no-ip.org
обсуждение исходный текст
Ответ на Does PERFORM hold a lock?  ("Peter Headland" <pheadland@actuate.com>)
Список pgsql-general
Peter Headland wrote:
> If I do the following in a pl/pgsql function, will an update lock be
> held until the end of the transaction?
>
>   PERFORM c FROM t FOR UPDATE;

Yes.  (PERFORM is translated to SELECT by the plpgsql engine, so to the
SQL executor this is the same as SELECT FOR UPDATE).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Race hazard deleting using CTID?
Следующее
От: "Peter Headland"
Дата:
Сообщение: Re: Race hazard deleting using CTID?