Re: Will UPDATE lock if FROM refers to target table?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Will UPDATE lock if FROM refers to target table?
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C22D6E6E@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Will UPDATE lock if FROM refers to target table?  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Ответы Re: Will UPDATE lock if FROM refers to target table?  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Список pgsql-general
Carlo Stonebanks wrote:
> If I do an update using the FROM clause, and that clause has a sub-query
> that refers to the table I am updating, will I be waiting for ever for a
> table to lock to release?

You cannot block yourself with a lock, if that's what you mean.
The locks your session takes out will only block other sessions.

Yours,
Laurenz Albe

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

Предыдущее
От: Tomasz Ostrowski
Дата:
Сообщение: Re: RES: 8.2.4 selects make applications wait indefinitely
Следующее
От: Syan Tan
Дата:
Сообщение: Re: atomic commit;begin for long running transactions , in combination with savepoint.