Re: Questions of 'for update' - Mailing list pgsql-hackers

From Zhenghua Lyu
Subject Re: Questions of 'for update'
Date
Msg-id CAO0i4_R2+Rw+2oyAX+tempFu9NW=18Kn2wV0vrkESQLNp7pkEQ@mail.gmail.com
Whole thread Raw
In response to Re: Questions of 'for update'  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
List 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 by date:

Previous
From: Alex
Date:
Subject: Re: Why to index a "Recently DEAD" tuple when creating index
Next
From: Konstantin Knizhnik
Date:
Subject: Adaptive query optimization