select ... for update in plpgsql

Поиск
Список
Период
Сортировка
От Jie Liang
Тема select ... for update in plpgsql
Дата
Msg-id Pine.BSF.4.10.10104201145490.80684-100000@tidal.ipinc.com
обсуждение исходный текст
Ответ на Thank you  (Mateusz Mazur <vincent@waw.pdi.net>)
Ответы Re: select ... for update in plpgsql
Список pgsql-sql
Hi,

I have a question about 'select ... for update';
according to the docs,
clause 'for update' will lock selected rows,
I believe it should be put into a
begin;
select ... for update;
update ...;
end;
block.

however, if I use it in a plpgsql function,
do I need another pair of begin...end?
or say begin...end in plpgsql can lock chosen rows until
updated ALL ROWS?
if not, do you have any suggestion?



Jie LIANG

St. Bernard Software

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.stbernard.com
www.ipinc.com



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

Предыдущее
От: Mark Stosberg
Дата:
Сообщение: Re: Client/Server Security question
Следующее
От: Mark Stosberg
Дата:
Сообщение: creating tables that are visible across databases