pgsql: Fix brin index summarizing while vacuuming.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix brin index summarizing while vacuuming.
Date: 2015-09-05 00:44:55
Message-ID: E1ZY1bD-00058B-0D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix brin index summarizing while vacuuming.

If the number of heap blocks is not multiples of pages per range, the
summarizing produces wrong summary information for the last brin index
tuple while vacuuming.

Problem reported by Tatsuo Ishii and fixed by Amit Langote.

Discussion at "[HACKERS] BRIN INDEX value (message id :20150903(dot)174935(dot)1946402199422994347(dot)t-ishii(at)sraoss(dot)co(dot)jp)
Backpatched to 9.5 in which brin index was added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c39f5674dfc77802b4245dd92cb4b1e35499a5a5

Modified Files
--------------
src/backend/access/brin/brin.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-09-05 08:46:24 pgsql: Fix misc typos.
Previous Message Tom Lane 2015-09-04 17:37:34 pgsql: Fix subtransaction cleanup after an outer-subtransaction portal