git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0f76294) | patch
Remove btree page items after page unlink
Tue, 4 Aug 2020 23:15:34 +0000 (02:15 +0300)
Tue, 4 Aug 2020 23:16:13 +0000 (02:16 +0300)
commit f47b5e139579a77c1f7c63400f01ea39d515e8c8
Remove btree page items after page unlink

Currently, page unlink leaves remaining items "as is", but replay of
corresponding WAL-record re-initializes page leaving it with no items.
For the sake of consistency, this commit makes primary delete all the items
during page unlink as well.

Thanks to this change, we now don't mask contents of deleted btree page for
WAL consistency checking.

Discussion: https://postgr.es/m/CAPpHfdt_OTyQpXaPJcWzV2N-LNeNJseNB-K_A66qG%3DL518VTFw%40mail.gmail.com
Author: Alexander Korotkov
Reviewed-by: Peter Geoghegan
contrib/amcheck/verify_nbtree.c diff | blob | blame | history
src/backend/access/nbtree/nbtpage.c diff | blob | blame | history
src/backend/access/nbtree/nbtxlog.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /