]> granicus.if.org Git - postgresql/commit
Since createplan.c no longer cares whether index operators are lossy, it has
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Apr 2008 20:51:21 +0000 (20:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 13 Apr 2008 20:51:21 +0000 (20:51 +0000)
commit226837e57eb6092b160e7272e7d09a3748c0eb47
tree9d69fdeed5f89838191d2ba223e0d7a920bd4797
parent24558da14a26337e945732d3b435b07edcbb6733
Since createplan.c no longer cares whether index operators are lossy, it has
no particular need to do get_op_opfamily_properties() while building an
indexscan plan.  Postpone that lookup until executor start.  This simplifies
createplan.c a lot more than it complicates nodeIndexscan.c, and makes things
more uniform since we already had to do it that way for RowCompare
expressions.  Should be a bit faster too, at least for plans that aren't
re-used many times, since we avoid palloc'ing and perhaps copying the
intermediate list data structure.
13 files changed:
src/backend/executor/execQual.c
src/backend/executor/nodeBitmapIndexscan.c
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeMergejoin.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/plan/createplan.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/lsyscache.c
src/include/executor/nodeIndexscan.h
src/include/nodes/plannodes.h
src/include/utils/lsyscache.h