]> granicus.if.org Git - postgresql/commit
Refactor GIN's handling of duplicate search entries.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Jan 2011 19:47:13 +0000 (14:47 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Jan 2011 19:48:08 +0000 (14:48 -0500)
commit56a57473a999b0497e63bde3e303beda5a3c0ff3
treec32f77b552cbd02ca16bbc9edc392cd0331c9c54
parent002c105a0706bd1c1e939fe0f47ecdceeae6c52d
Refactor GIN's handling of duplicate search entries.

The original coding could combine duplicate entries only when they
originated from the same qual condition.  In particular it could not
combine cases where multiple qual conditions all give rise to full-index
scan requests, which is an expensive case well worth optimizing.  Refactor
so that duplicates are recognized across all the quals.
src/backend/access/gin/ginget.c
src/backend/access/gin/ginscan.c
src/include/access/gin_private.h