postgresql/contrib/bloom
Tom Lane c35b472869 Fix errors in contrib/bloom index build.
Count the number of tuples in the index honestly, instead of assuming
that it's the same as the number of tuples in the heap.  (It might be
different if the index is partial.)

Fix counting of tuples in current index page, too.  This error would
have led to failing to write out the final page of the index if it
contained exactly one tuple, so that the last tuple of the relation
would not get indexed.

Back-patch to 9.6 where contrib/bloom was added.

Tomas Vondra and Tom Lane

Discussion: https://postgr.es/m/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com
2018-03-22 13:14:07 -04:00
..
expected Add more tests for reloptions 2017-10-19 14:22:05 +02:00
sql Add more tests for reloptions 2017-10-19 14:22:05 +02:00
t Tighten test in contrib/bloom/t/001_wal.pl. 2017-11-10 12:30:01 -05:00
.gitignore Bloom index contrib module 2016-04-01 16:42:24 +03:00
Makefile Bloom index contrib module 2016-04-01 16:42:24 +03:00
blcost.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
blinsert.c Fix errors in contrib/bloom index build. 2018-03-22 13:14:07 -04:00
bloom--1.0.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
bloom.control Bloom index contrib module 2016-04-01 16:42:24 +03:00
bloom.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
blscan.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
blutils.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
blvacuum.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
blvalidate.c Update copyright for 2018 2018-01-02 23:30:12 -05:00