postgresql/src/backend/optimizer/path
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
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
allpaths.c Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
clausesel.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
costsize.c Rethink representation of index clauses' mapping to index columns. 2011-12-24 19:03:21 -05:00
equivclass.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
indxpath.c Rethink representation of index clauses' mapping to index columns. 2011-12-24 19:03:21 -05:00
joinpath.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
joinrels.c Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
orindxpath.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pathkeys.c Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
tidpath.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00