Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2023-03-25 14:34:25 +0100, Tomas Vondra wrote:
>> Can't we ensure we actually lock the vm buffer too in ReadBufferBI,
>> before calling ReadBufferExtended? Or am I confused and that's not
>> possible for some reason?
> Note that this is using P_NEW. I.e. we don't know the buffer location yet.
Maybe the relation-extension logic needs to include the ability to get
the relevant vm page?
regards, tom lane