OSDN Git Service

Further cleanup of indxpath logic related to IndexOptInfo.opfamily array.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Nov 2010 20:07:16 +0000 (15:07 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Nov 2010 20:07:16 +0000 (15:07 -0500)
commit89a368418c56125f79f46a81229e824d519f9718
tree20fcf3b7c087f1abe9c68b67f939547f763c5797
parent99bc012d5198bdfd2aa67336f645dbf887bb0ec9
Further cleanup of indxpath logic related to IndexOptInfo.opfamily array.

We no longer need the terminating zero entry in opfamily[], so get rid of
it.  Also replace assorted ad-hoc looping logic with simple for and foreach
constructs.  This code is now noticeably more readable than it was an hour
ago; credit to Robert for seeing that it could be simplified.
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/util/plancat.c
src/include/nodes/relation.h