From 926e8a00d38e1873369ab9a24062440c82d7731c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 Mar 2005 06:29:49 +0000 Subject: Add a back-link from IndexOptInfo structs to their parent RelOptInfo structs. There are many places in the planner where we were passing both a rel and an index to subroutines, and now need only pass the index struct. Notationally simpler, and perhaps a tad faster. --- src/backend/optimizer/util/plancat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/optimizer/util/plancat.c') diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c index c9679a19e28..6099211ba45 100644 --- a/src/backend/optimizer/util/plancat.c +++ b/src/backend/optimizer/util/plancat.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.101 2005/03/24 19:14:49 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.102 2005/03/27 06:29:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -124,6 +124,7 @@ get_relation_info(Oid relationObjectId, RelOptInfo *rel) info = makeNode(IndexOptInfo); info->indexoid = index->indexrelid; + info->rel = rel; info->ncolumns = ncolumns = index->indnatts; /* -- cgit v1.2.3