diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-10-05 19:11:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-10-05 19:11:39 +0000 |
commit | 05e3d0ee8666b74f11ffad16f46e372459d6e53e (patch) | |
tree | b273892bfda60f6bad315e84aaa2e9826e226931 /src/include/optimizer/prep.h | |
parent | 5292637f52c6db8a22f99177f228273cb69fc510 (diff) | |
download | postgresql-05e3d0ee8666b74f11ffad16f46e372459d6e53e.tar.gz postgresql-05e3d0ee8666b74f11ffad16f46e372459d6e53e.zip |
Reimplementation of UNION/INTERSECT/EXCEPT. INTERSECT/EXCEPT now meet the
SQL92 semantics, including support for ALL option. All three can be used
in subqueries and views. DISTINCT and ORDER BY work now in views, too.
This rewrite fixes many problems with cross-datatype UNIONs and INSERT/SELECT
where the SELECT yields different datatypes than the INSERT needs. I did
that by making UNION subqueries and SELECT in INSERT be treated like
subselects-in-FROM, thereby allowing an extra level of targetlist where the
datatype conversions can be inserted safely.
INITDB NEEDED!
Diffstat (limited to 'src/include/optimizer/prep.h')
-rw-r--r-- | src/include/optimizer/prep.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/optimizer/prep.h b/src/include/optimizer/prep.h index 4ffddcf5668..dcdf6fb62f6 100644 --- a/src/include/optimizer/prep.h +++ b/src/include/optimizer/prep.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: prep.h,v 1.23 2000/06/20 04:22:13 tgl Exp $ + * $Id: prep.h,v 1.24 2000/10/05 19:11:37 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -32,11 +32,11 @@ extern List *preprocess_targetlist(List *tlist, int command_type, /* * prototypes for prepunion.c */ +extern Plan *plan_set_operations(Query *parse); extern List *find_all_inheritors(Oid parentrel); extern bool find_inheritable_rt_entry(List *rangetable, Index *rt_index, List **inheritors); extern Plan *plan_inherit_queries(Query *root, List *tlist, Index rt_index, List *inheritors); -extern Plan *plan_union_queries(Query *parse); #endif /* PREP_H */ |