pgsql: Further cleanup of indxpath logic related to IndexOptInfo.opfami

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Further cleanup of indxpath logic related to IndexOptInfo.opfami
Date: 2010-11-20 20:07:32
Message-ID: E1PJtie-0007ir-Uy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-11-21 03:34:37 pgsql: Add new SQL function, format(text).
Previous Message Robert Haas 2010-11-20 18:59:01 pgsql: Minor cleanup of indxpath.c.