From 3389a110d40a505951e7c7babdfb8681173bb2ca Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 12 May 2002 23:43:04 +0000 Subject: Get rid of long-since-vestigial Iter node type, in favor of adding a returns-set boolean field in Func and Oper nodes. This allows cleaner, more reliable tests for expressions returning sets in the planner and parser. For example, a WHERE clause returning a set is now detected and complained of in the parser, not only at runtime. --- src/include/optimizer/clauses.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/optimizer') diff --git a/src/include/optimizer/clauses.h b/src/include/optimizer/clauses.h index 69596c1779..376e8cc77a 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.51 2002/04/05 00:31:35 tgl Exp $ + * $Id: clauses.h,v 1.52 2002/05/12 23:43:04 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -42,7 +42,7 @@ 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 expression_returns_set(Node *clause); extern bool contain_subplans(Node *clause); extern List *pull_subplans(Node *clause); -- cgit v1.2.1