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/path/pathkeys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/optimizer/path/pathkeys.c') 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 { -- cgit v1.2.3