Re: Row locking inside a rule, is it possible?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Row locking inside a rule, is it possible?
Дата
Msg-id 23535.1018074367@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Row locking inside a rule, is it possible?  (Denis Chavez <dnchavez@gmx.net>)
Список pgsql-general
Denis Chavez <dnchavez@gmx.net> writes:
> ... My advice: when selecting for update inside a rule, we must
> especify the table twice?, that is: SELECT * FROM tablename WHERE ... FOR
> UPDATE OF tablename;  :-)

Hmm.  Seems that the problem is this: the unadorned FOR UPDATE tries
to apply FOR UPDATE to OLD and NEW as well as the regular tables
mentioned in your SELECT.  FOR UPDATE of NEW doesn't work ... and
is fairly nonsensical anyway ...

            regards, tom lane

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

Предыдущее
От: Denis Chavez
Дата:
Сообщение: Re: Row locking inside a rule, is it possible?
Следующее
От: "Kancha ."
Дата:
Сообщение: libpgeasy.h