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/include/nodes/relation.h | |
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/include/nodes/relation.h')
-rw-r--r-- | src/include/nodes/relation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index b5c024df315..4698e4d8cb3 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.103 2005/02/21 06:43:04 neilc Exp $ + * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.104 2005/03/27 06:29:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -253,6 +253,7 @@ typedef struct IndexOptInfo NodeTag type; Oid indexoid; /* OID of the index relation */ + RelOptInfo *rel; /* back-link to index's table */ /* statistics from pg_class */ BlockNumber pages; /* number of disk pages in index */ |