]> granicus.if.org Git - postgresql/commit
Fix bug introduced by microvacuum for GiST
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 17 Sep 2015 11:22:37 +0000 (14:22 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 17 Sep 2015 11:22:37 +0000 (14:22 +0300)
commit22f519c92a45eb017bf2e65f36506a75309f8094
tree822983b85ae1ea823bd2da1d6a3b0f707a554a0f
parent7aea8e4f2daa4b39ca9d1309a0c4aadb0f7ed81b
Fix bug introduced by microvacuum for GiST

Commit 013ebc0a7b7ea9c1b1ab7a3d4dd75ea121ea8ba7 introduces microvacuum for
GiST, deletetion of tuple marked LP_DEAD uses IndexPageMultiDelete while
recovery code uses IndexPageTupleDelete in loop. This causes a difference
in offset numbers of tuples to delete. Patch introduces usage of
IndexPageMultiDelete in GiST except gistplacetopage() where only one tuple is
deleted at once. That also slightly improve performance, because
IndexPageMultiDelete is more effective.

Patch changes WAL format, so bump wal page magic.

Bug report from Jeff Janes
Diagnostic and patch by Anastasia Lubennikova and me
src/backend/access/gist/gist.c
src/backend/access/gist/gistvacuum.c
src/backend/access/gist/gistxlog.c
src/include/access/xlog_internal.h