pgsql: Further cleanup of indxpath logic related to IndexOptInfo.opfami - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Further cleanup of indxpath logic related to IndexOptInfo.opfami
Date
Msg-id E1PJtie-0007ir-Uy@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=89a368418c56125f79f46a81229e824d519f9718

Modified Files
--------------
src/backend/optimizer/path/indxpath.c |   53 ++++++++++++++------------------
src/backend/optimizer/util/plancat.c  |   10 +++---
src/include/nodes/relation.h          |    3 --
3 files changed, 28 insertions(+), 38 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Minor cleanup of indxpath.c.
Next
From: Robert Haas
Date:
Subject: pgsql: Add new SQL function, format(text).