1 /*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * $PostgreSQL: pgsql/src/include/optimizer/subselect.h,v 1.22 2004/08/29 04:13:09 momjian Exp $
10 *-------------------------------------------------------------------------
15 #include "nodes/parsenodes.h"
16 #include "nodes/plannodes.h"
18 extern Index PlannerQueryLevel; /* level of current query */
19 extern List *PlannerInitPlan; /* init subplans for current query */
20 extern List *PlannerParamList; /* to keep track of cross-level Params */
21 extern int PlannerPlanId; /* to assign unique ID to subquery plans */
23 extern Node *convert_IN_to_join(Query *parse, SubLink *sublink);
24 extern Node *SS_replace_correlation_vars(Node *expr);
25 extern Node *SS_process_sublinks(Node *expr, bool isQual);
26 extern void SS_finalize_plan(Plan *plan, List *rtable);
28 #endif /* SUBSELECT_H */