diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-01-29 17:53:39 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-01-29 17:53:39 +0200 |
commit | e20c70cb0fa74d5bffa080e21a99b44bf0768667 (patch) | |
tree | b6cd59c6bdd84d64b7f2a66b9f9db2e0802c1568 /src/backend/utils/adt/jsonfuncs.c | |
parent | 2013e5eef7e08d924237c03196b76a9edf43254a (diff) | |
download | postgresql-e20c70cb0fa74d5bffa080e21a99b44bf0768667.tar.gz postgresql-e20c70cb0fa74d5bffa080e21a99b44bf0768667.zip |
Allow skipping some items in a multi-key GIN search.
In a multi-key search, ie. something like "col @> 'foo' AND col @> 'bar'",
as soon as we find the next item that matches the first criteria, we don't
need to check the second criteria for TIDs smaller the first match. That
saves a lot of effort, especially if one of the terms is rare, while the
second occurs very frequently.
Based on ideas from Alexander Korotkov's fast scan patch.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions