pgsql: hio: Relax rules for calling GetVisibilityMapPins()

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: hio: Relax rules for calling GetVisibilityMapPins()
Date: 2023-04-06 18:11:02
Message-ID: E1pkU4a-001iVx-Ty@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

hio: Relax rules for calling GetVisibilityMapPins()

GetVisibilityMapPins() insisted on the buffer1/buffer2 being in a specific
order. This required checks at the callsite. As a subsequent patch will add
another callsite, move related logic into GetVisibilityMapPins().

Discussion: https://postgr.es/m/20230403190030.fk2frxv6faklrseb@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bba9003b627f4742212bd060ae65fe5c9c3592f3

Modified Files
--------------
src/backend/access/heap/hio.c | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-04-06 18:28:41 pgsql: hio: Don't pin the VM while holding buffer lock while extending
Previous Message Tom Lane 2023-04-06 17:18:30 pgsql: psql: add an optional execution-count limit to \watch.