pgsql: Refactor GIN's handling of duplicate search entries. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Refactor GIN's handling of duplicate search entries.
Date
Msg-id E1PbemO-0006Es-K8@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=56a57473a999b0497e63bde3e303beda5a3c0ff3

Modified Files
--------------
src/backend/access/gin/ginget.c  |  419 +++++++++++++++++++-------------------
src/backend/access/gin/ginscan.c |  294 +++++++++++++++------------
src/include/access/gin_private.h |   52 +++--
3 files changed, 402 insertions(+), 363 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: In pg_upgrade, remove functions that did sequential array scans
Next
From: Tom Lane
Date:
Subject: pgsql: Remove pg_am.amindexnulls.