Fix bug in lossy-page handling in GIN
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 10 May 2014 20:24:23 +0000 (23:24 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 10 May 2014 20:28:26 +0000 (23:28 +0300)
commit866e6e1d04d4ae9615bd1899a757dae0191e9c77
tree55c6d47028e5d832ebf04ff39e224cceed1faff0
parenteaba54c20c5ab2cb6aaffa574444fd4990dfe2c7
Fix bug in lossy-page handling in GIN

When returning rows from a bitmap, as done with partial match queries, we
would get stuck in an infinite loop if the bitmap contained a lossy page
reference.

This bug is new in master, it was introduced by the patch to allow skipping
items refuted by other entries in GIN scans.

Report and fix by Alexander Korotkov
src/backend/access/gin/ginget.c