diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-02-02 23:53:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-02-02 23:53:26 +0000 |
commit | 4090d17fee7f6028e6e969d1a32d84fed67803e4 (patch) | |
tree | b5c5e30978e93433c853123f2ded048ee3d336e8 /src/backend | |
parent | f1b78234716bd639b045873c7be0c9424b897f16 (diff) | |
download | postgresql-4090d17fee7f6028e6e969d1a32d84fed67803e4.tar.gz postgresql-4090d17fee7f6028e6e969d1a32d84fed67803e4.zip |
SET_ARGS cleanup
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 8 | ||||
-rw-r--r-- | src/backend/optimizer/util/pathnode.c | 13 |
2 files changed, 8 insertions, 13 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 7a82ad99fdc..763a9d48354 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.20 1998/09/01 04:29:03 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.21 1999/02/02 23:53:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -422,11 +422,11 @@ _equalMergePath(MergePath *a, MergePath *b) if (!_equalJoinPath((JoinPath *) a, (JoinPath *) b)) return false; - if (!equal((a->path_mergeclauses), (b->path_mergeclauses))) + if (!equal(a->path_mergeclauses, b->path_mergeclauses)) return false; - if (!equal((a->outersortkeys), (b->outersortkeys))) + if (!equal(a->outersortkeys, b->outersortkeys)) return false; - if (!equal((a->innersortkeys), (b->innersortkeys))) + if (!equal(a->innersortkeys, b->innersortkeys)) return false; return true; } diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c index d7dcbcc84f9..d8ac6247a1b 100644 --- a/src/backend/optimizer/util/pathnode.c +++ b/src/backend/optimizer/util/pathnode.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.13 1998/09/21 15:41:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.14 1999/02/02 23:53:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -157,18 +157,13 @@ better_path(Path *new_path, List *unique_paths, bool *noOther) List *temp = NIL; Path *retval = NULL; - /* - * XXX - added the following two lines which weren't int the lisp - * planner, but otherwise, doesn't seem to work for the case where - * new_path is 'nil - */ foreach(temp, unique_paths) { path = (Path *) lfirst(temp); - if ((equal_path_path_ordering(&new_path->p_ordering, - &path->p_ordering) && - samekeys(new_path->keys, path->keys))) + if (samekeys(path->keys, new_path->keys) && + equal_path_path_ordering(&path->p_ordering, + &new_path->p_ordering)) { old_path = path; break; |