postgresql/src/include/utils
Tom Lane c0b5fac701 Simplify and speed up mapping of index opfamilies to pathkeys.
Formerly we looked up the operators associated with each index (caching
them in relcache) and then the planner looked up the btree opfamily
containing such operators in order to build the btree-centric pathkey
representation that describes the index's sort order.  This is quite
pointless for btree indexes: we might as well just use the index's opfamily
information directly.  That saves syscache lookup cycles during planning,
and furthermore allows us to eliminate the relcache's caching of operators
altogether, which may help in reducing backend startup time.

I added code to plancat.c to perform the same type of double lookup
on-the-fly if it's ever faced with a non-btree amcanorder index AM.
If such a thing actually becomes interesting for production, we should
replace that logic with some more-direct method for identifying the
corresponding btree opfamily; but it's not worth spending effort on now.

There is considerably more to do pursuant to my recent proposal to get rid
of sort-operator-based representations of sort orderings, but this patch
grabs some of the low-hanging fruit.  I'll look at the remainder of that
work after the current commitfest.
2010-11-29 12:30:43 -05:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
acl.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
array.h Provide hashing support for arrays. 2010-10-30 21:56:11 -04:00
ascii.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
attoptcache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
builtins.h When reporting the server as not responding, if the hostname was 2010-11-24 17:04:19 -05:00
bytea.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
cash.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
catcache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
combocid.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
date.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
datetime.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
datum.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
dynahash.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
dynamic_loader.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
elog.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
errcodes.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
fmgrtab.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
formatting.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
geo_decls.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
guc_tables.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
guc.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
help_config.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
hsearch.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
inet.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
int8.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
inval.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
logtape.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
lsyscache.h Provide hashing support for arrays. 2010-10-30 21:56:11 -04:00
memutils.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nabstime.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
numeric.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
palloc.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_crc.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_locale.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_lzcompress.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_rusage.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
plancache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
portal.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
ps_status.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rbtree.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rel.h Simplify and speed up mapping of index opfamilies to pathkeys. 2010-11-29 12:30:43 -05:00
relcache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
relmapper.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
resowner.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
selfuncs.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
snapmgr.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
snapshot.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
spccache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
syscache.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
timestamp.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
tqual.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
tuplesort.h Teach CLUSTER to use seqscan-and-sort when it's faster than indexscan. 2010-10-07 20:00:28 -04:00
tuplestore.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
typcache.h Provide hashing support for arrays. 2010-10-30 21:56:11 -04:00
tzparser.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
uuid.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
varbit.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
xml.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00