mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user