postgresql/src/backend/access
Tom Lane 472d3935a2 Rethink representation of index clauses' mapping to index columns.
In commit e2c2c2e8b1 I made use of nested
list structures to show which clauses went with which index columns, but
on reflection that's a data structure that only an old-line Lisp hacker
could love.  Worse, it adds unnecessary complication to the many places
that don't much care which clauses go with which index columns.  Revert
to the previous arrangement of flat lists of clauses, and instead add a
parallel integer list of column numbers.  The places that care about the
pairing can chase both lists with forboth(), while the places that don't
care just examine one list the same as before.

The only real downside to this is that there are now two more lists that
need to be passed to amcostestimate functions in case they care about
column matching (which btcostestimate does, so not passing the info is not
an option).  Rather than deal with 11-argument amcostestimate functions,
pass just the IndexPath and expect the functions to extract fields from it.
That gets us down to 7 arguments which is better than 11, and it seems
more future-proof against likely additions to the information we keep
about an index path.
2011-12-24 19:03:21 -05:00
..
common Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
gin Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records. 2011-11-25 13:58:59 -05:00
gist Use IEEE infinity, not 1e10, for null-and-not-null case in gistpenalty(). 2011-11-27 17:12:54 -05:00
hash Measure the number of all-visible pages for use in index-only scan costing. 2011-10-14 17:23:46 -04:00
heap Improve table locking behavior in the face of current DDL. 2011-11-30 10:27:00 -05:00
index Replace simple constant pg_am.amcanreturn with an AM support function. 2011-12-18 15:50:37 -05:00
nbtree Rethink representation of index clauses' mapping to index columns. 2011-12-24 19:03:21 -05:00
spgist Rename updateNodeLink to spgUpdateNodeLink. 2011-12-19 15:38:32 -05:00
transam Avoid crashing when we have problems unlinking files post-commit. 2011-12-20 15:00:36 -05:00
Makefile Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00