From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix bug introduced by microvacuum for GiST
Date: Thu, 17 Sep 2015 11:23:05 +0000
Message-ID: <E1ZcXHN-0008NZ-H5@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/22f519c92a45eb017bf2e65f36506a75309f8094
Modified Files
--------------
src/backend/access/gist/gist.c | 5 +++++
src/backend/access/gist/gistvacuum.c | 11 ++++-------
src/backend/access/gist/gistxlog.c | 4 +---
src/include/access/xlog_internal.h | 2 +-
4 files changed, 11 insertions(+), 11 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Fix bug introduced by microvacuum for GiST
In-Reply-To: <E1ZcXHN-0008NZ-H5@gemulon.postgresql.org>
References: <E1ZcXHN-0008NZ-H5@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox