From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Deduplicate PageIsNew() check in lazy_scan_heap(). |
Date: | 2020-03-30 21:10:56 |
Message-ID: | E1jJ1gO-0003wo-Sb@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Deduplicate PageIsNew() check in lazy_scan_heap().
The recheck isn't needed anymore, as RelationGetBufferForTuple() now
extends the relation with RBM_ZERO_AND_LOCK. Previously we needed to
handle the fact that relation extension extended the relation and then
separately acquired a lock on the page - while expecting that the page
is empty.
Reported-By: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQArA_=J0D5T258xsCY6Xtf6wiH4b=QDPDgVS+WZUN10WDw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d4b34f60c54904bb3647911dfd9d79d8a4fab430
Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2020-03-30 21:15:50 | Re: pgsql: Implement operator class parameters |
Previous Message | Alexander Korotkov | 2020-03-30 20:46:19 | pgsql: Fix missing SP-GiST support in 911e702077 |