summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2000-02-06 03:27:35 +0000
committerTom Lane2000-02-06 03:27:35 +0000
commit81fc1d5edb36773fe28f3b5dc5daf5eb7d468a61 (patch)
tree14073bed5eb4955815511924daa365e63c1c86b1 /src/include
parent418b270020de20086042d7595dfe7d941b038716 (diff)
Rename same() to sameseti() to have a slightly less generic name. Move
nonoverlap_sets() and is_subset() to list.c, where they should have lived to begin with, and rename to nonoverlap_setsi and is_subseti since they only work on integer lists.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/nodes/pg_list.h7
-rw-r--r--src/include/optimizer/paths.h4
2 files changed, 6 insertions, 5 deletions
diff --git a/src/include/nodes/pg_list.h b/src/include/nodes/pg_list.h
index 9e96cef956b..94aa8d58c6b 100644
--- a/src/include/nodes/pg_list.h
+++ b/src/include/nodes/pg_list.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_list.h,v 1.14 2000/01/26 05:58:16 momjian Exp $
+ * $Id: pg_list.h,v 1.15 2000/02/06 03:27:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -106,7 +106,10 @@ extern List *set_difference(List *list1, List *list2);
extern List *set_differencei(List *list1, List *list2);
extern List *LispUnion(List *list1, List *list2);
extern List *LispUnioni(List *list1, List *list2);
-extern bool same(List *list1, List *list2);
+
+extern bool sameseti(List *list1, List *list2);
+extern bool nonoverlap_setsi(List *list1, List *list2);
+extern bool is_subseti(List *list1, List *list2);
extern void freeList(List *list);
diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h
index c422654c5ad..bcecd4c923c 100644
--- a/src/include/optimizer/paths.h
+++ b/src/include/optimizer/paths.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: paths.h,v 1.40 2000/02/05 18:26:07 tgl Exp $
+ * $Id: paths.h,v 1.41 2000/02/06 03:27:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -100,8 +100,6 @@ extern List *make_rels_by_clause_joins(Query *root, RelOptInfo *old_rel,
extern List *make_rels_by_clauseless_joins(RelOptInfo *old_rel,
List *inner_rels);
extern RelOptInfo *get_cheapest_complete_rel(List *join_rel_list);
-extern bool nonoverlap_sets(List *s1, List *s2);
-extern bool is_subset(List *s1, List *s2);
/*
* prune.c