diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-27 06:29:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-27 06:29:49 +0000 |
commit | 926e8a00d38e1873369ab9a24062440c82d7731c (patch) | |
tree | 9034ee995948ac39c0b6dd1606bc1f6213e7c8dd /src/backend/optimizer/util/plancat.c | |
parent | febc9a613cd523de84da883a81e2040c3b1336a6 (diff) | |
download | postgresql-926e8a00d38e1873369ab9a24062440c82d7731c.tar.gz postgresql-926e8a00d38e1873369ab9a24062440c82d7731c.zip |
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.
Diffstat (limited to 'src/backend/optimizer/util/plancat.c')
-rw-r--r-- | src/backend/optimizer/util/plancat.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; /* |