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/path/pathkeys.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/path/pathkeys.c')
-rw-r--r-- | src/backend/optimizer/path/pathkeys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c index d2c6de54dd7..0e23045fef9 100644 --- a/src/backend/optimizer/path/pathkeys.c +++ b/src/backend/optimizer/path/pathkeys.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/path/pathkeys.c,v 1.64 2005/01/23 02:21:26 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/path/pathkeys.c,v 1.65 2005/03/27 06:29:36 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -648,7 +648,6 @@ get_cheapest_fractional_path_for_pathkeys(List *paths, */ List * build_index_pathkeys(Query *root, - RelOptInfo *rel, IndexOptInfo *index, ScanDirection scandir) { @@ -675,7 +674,8 @@ build_index_pathkeys(Query *root, if (*indexkeys != 0) { /* simple index column */ - indexkey = (Node *) find_indexkey_var(root, rel, *indexkeys); + indexkey = (Node *) find_indexkey_var(root, index->rel, + *indexkeys); } else { |