diff options
author | Andres Freund <andres@anarazel.de> | 2020-03-30 13:51:12 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2020-03-30 13:56:40 -0700 |
commit | d4b34f60c54904bb3647911dfd9d79d8a4fab430 (patch) | |
tree | a363186c37a8e7aca3b8d50009c4a651fe008c30 /src/backend/access/transam/xlog.c | |
parent | 364bdd0b411343747aeca17708ff7817d7fe0b00 (diff) | |
download | postgresql-d4b34f60c54904bb3647911dfd9d79d8a4fab430.tar.gz postgresql-d4b34f60c54904bb3647911dfd9d79d8a4fab430.zip |
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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions