Re: Buffer Cache Problem - Mailing list pgsql-hackers

From jacktby jacktby
Subject Re: Buffer Cache Problem
Date
Msg-id 8ADBC847-2D66-4EFB-89AF-76338B8B46F4@gmail.com
Whole thread Raw
In response to Re: Buffer Cache Problem  (jacktby jacktby <jacktby@gmail.com>)
Responses Re: Buffer Cache Problem
List pgsql-hackers

2023年11月10日 22:31,jacktby jacktby <jacktby@gmail.com> 写道:

In the bus_internal.h,I see
====================================================
 Note: Buffer header lock (BM_LOCKED flag) must be held to examine or change  tag, state or wait_backend_pgprocno fields.
====================================================
As we all know, this buffer header lock is implemented by a bit in state filed, and this state field is a atomic_u32 type, so in fact we don’t need to 
hold buffer lock when we update state, this comment has error,right?
Oh, sorry this is true, in fact we never acquire a spin lock when update the state.

pgsql-hackers by date:

Previous
From: jacktby jacktby
Date:
Subject: Re: Buffer Cache Problem
Next
From: jian he
Date:
Subject: Re: EXCLUDE COLLATE in CREATE/ALTER TABLE document