]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix brin index summarizing while vacuuming.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 5 Sep 2015 00:19:25 +0000 (09:19 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 5 Sep 2015 00:42:46 +0000 (09:42 +0900)
commitb1cbc8529d076b71c9c2f8403139f7235072a357
treedca59d6a2b6a5a5b5ceabc04809a5da71b7f7261
parenta2538da89f664671d1790cb8dbb4b94849ed923c
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.174935.1946402199422994347.t-ishii@sraoss.co.jp)
Backpatched to 9.5 in which brin index was added.
src/backend/access/brin/brin.c