AW: Issue NOTICE for attempt to raise lock level?

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Issue NOTICE for attempt to raise lock level?
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633680F1@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Список pgsql-hackers
> A NOTICE might be useful to users since it would complain about
> deadlock-prone user-level coding practices too, such as
> 
>     begin;
>     select * from foo;    -- grabs read lock
>     lock table foo;        -- grabs exclusive lock

Although this is deadlock prone praxis, there is no mention in any standard that 
this is not allowed or depricated. Thus we are imho not allowed to issue a notice.

Of course my opinion is that you should release the lock after select
if isolation is not RR or serializable. Thus not leading to a deadlock situation.
(I do have strong feelings about this issue)

Andreas


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

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Issue NOTICE for attempt to raise lock level?
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: refcnt leak ?