postgresql/src
Alexander Korotkov 309765fa1e Fix handling of empty uncompressed posting list pages in GIN
PostgreSQL 9.4 introduces posting list compression in GIN.  This feature
supports online upgrade, so that after pg_upgrade uncompressed posting
lists are compressed on-the-fly.  Underlying code appears to always
expect at least one item on uncompressed posting list page.  But there
could be completely empty pages, because VACUUM never deletes leftmost
and rightmost pages from posting trees.  This commit fixes that.

Reported-by: Sivasubramanian Ramasubramanian
Discussion: https://postgr.es/m/1531867212836.63354%40amazon.com
Author: Sivasubramanian Ramasubramanian, Alexander Korotkov
Backpatch-through: 9.4
2018-07-19 21:04:17 +03:00
..
backend Fix handling of empty uncompressed posting list pages in GIN 2018-07-19 21:04:17 +03:00
bin Fix misc typos, mostly in comments. 2018-07-18 16:17:32 +03:00
common Rework error messages around file handling 2018-07-18 08:01:23 +09:00
fe_utils Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
include Expand run-time partition pruning to work with MergeAppend 2018-07-19 13:49:43 +03:00
interfaces Fix error message when a hostaddr cannot be parsed. 2018-07-19 20:24:29 +03:00
makefiles Remove Windows module-list-dumping code. 2018-04-30 13:20:13 -04:00
pl Fix misc typos, mostly in comments. 2018-07-18 16:17:32 +03:00
port Rethink how to get float.h in old Windows API for isnan/isinf 2018-07-11 09:11:48 -04:00
template Force "restrict" not to be used when compiling with xlc. 2017-10-13 12:15:06 -07:00
test Expand run-time partition pruning to work with MergeAppend 2018-07-19 13:49:43 +03:00
timezone Update time zone data files to tzdata release 2018e. 2018-05-09 13:56:22 -04:00
tools Add subtransaction handling for table synchronization workers. 2018-07-16 17:33:22 -04:00
tutorial Update copyright for 2018 2018-01-02 23:30:12 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Un-break contrib install with llvm. 2018-04-28 14:45:39 -04:00
Makefile.shlib Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00