diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-12-10 22:54:12 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-12-10 22:54:12 +0000 |
| commit | 63cc56de54049e9e2c16dde182fb93c09298af3b (patch) | |
| tree | b8a4a4587605e7b7c6d1723c4dd0f1df0facd7a2 /src/include/optimizer/clauses.h | |
| parent | 584f818bef68450d23d1b75afbaf19febe38fd37 (diff) | |
| download | postgresql-63cc56de54049e9e2c16dde182fb93c09298af3b.tar.gz | |
Suppress subquery pullup and pushdown when the subquery has any
set-returning functions in its target list. This ensures that we
won't rewrite the query in a way that places set-returning functions
into quals (WHERE clauses). Cf. bug reports from Joe Conway.
Diffstat (limited to 'src/include/optimizer/clauses.h')
| -rw-r--r-- | src/include/optimizer/clauses.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/optimizer/clauses.h b/src/include/optimizer/clauses.h index 49272e3e7c..4cbaf762ca 100644 --- a/src/include/optimizer/clauses.h +++ b/src/include/optimizer/clauses.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: clauses.h,v 1.49 2001/11/05 17:46:34 momjian Exp $ + * $Id: clauses.h,v 1.50 2001/12/10 22:54:12 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -42,6 +42,8 @@ extern List *make_ands_implicit(Expr *clause); extern bool contain_agg_clause(Node *clause); extern List *pull_agg_clause(Node *clause); +extern bool contain_iter_clause(Node *clause); + extern bool contain_subplans(Node *clause); extern List *pull_subplans(Node *clause); extern void check_subplans_for_ungrouped_vars(Query *query); |
