Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name
Дата
Msg-id 11321.1153756300@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name  ("Florian G. Pflug" <fgp@phlo.org>)
Список pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> How could there be a concurrent update of the _same_ row, when
> I do "select * from bar *for update*".

AFAICT the spec doesn't require one to have written FOR UPDATE
in order to use WHERE CURRENT OF.  (In effect, they expect FOR UPDATE
to be the default, which is certainly not a change we're going to
want to make to DECLARE CURSOR.)  If we did make that restriction
then we could probably skip the EvalPlanQual mess.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Better name/syntax for "online" index creation