postgresql/src
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
..
backend Rethink representation of index clauses' mapping to index columns. 2011-12-24 19:03:21 -05:00
bin Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
include Rethink representation of index clauses' mapping to index columns. 2011-12-24 19:03:21 -05:00
interfaces Don't forget to de-escape the password field in .pgpass. 2011-12-22 13:02:57 -05:00
makefiles Add pg_upgrade test suite 2011-11-27 22:42:32 +02:00
pl PL/Python: One more file renaming fix to unbreak the build 2011-12-18 22:34:53 +02:00
port Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Improve planner's handling of duplicated index column expressions. 2011-12-23 18:45:14 -05:00
timezone Update time zone data files to tzdata release 2011n. 2011-11-30 11:48:05 -05:00
tools Make pgcompinclude/pgrminclude less tied to Bruce's personal machine. 2011-12-01 14:44:32 -05:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -04:00
nls-global.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00