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)
commit61e1e56d8640dd7803b642632ca8413dacd1044e
tree3c9a9c47420dcb2d2a1c18356023a586aa04eebf
parent60d8718fbd1b31abe52f7b3f872e1520161c467c
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