Re: Questions of 'for update'

Поиск
Список
Период
Сортировка
От Zhenghua Lyu
Тема Re: Questions of 'for update'
Дата
Msg-id CAO0i4_R2+Rw+2oyAX+tempFu9NW=18Kn2wV0vrkESQLNp7pkEQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Questions of 'for update'  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Список pgsql-hackers
Thanks so much.

I understand now.

Best Regards,
Zhenghua Lyu


On Mon, Jun 10, 2019 at 3:22 PM Kuntal Ghosh <kuntalghosh.2007@gmail.com> wrote:
On Mon, Jun 10, 2019 at 12:42 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
Hi,

On Mon, Jun 10, 2019 at 3:50 PM Kuntal Ghosh <kuntalghosh.2007@gmail.com> wrote:
> On Mon, Jun 10, 2019 at 11:31 AM Zhenghua Lyu <zlv@pivotal.io> wrote:
>> 2. Is the case above a bug or a feature?
>>
> IMHO, it looks like an expected behaviour of a correct transaction management implementation.

This is documented behavior; see the Caution for The Locking Clause on
the SELECT reference page:
https://www.postgresql.org/docs/11/sql-select.html


Great. It also suggests a workaround. 


--
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com

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

Предыдущее
От: Alex
Дата:
Сообщение: Re: Why to index a "Recently DEAD" tuple when creating index
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Adaptive query optimization