git.postgresql.org Git - postgresql.git/commit
2020年3月30日 20:51:12 +0000 (13:51 -0700)
2020年3月30日 20:56:40 +0000 (13:56 -0700)
commit d4b34f60c54904bb3647911dfd9d79d8a4fab430
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
This is the main PostgreSQL git repository.
RSS
Atom