1 /*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
10 *-------------------------------------------------------------------------
15 #include "nodes/plannodes.h"
16 #include "nodes/relation.h"
18 extern void SS_process_ctes(PlannerInfo
*root
);
19 extern JoinExpr
*convert_ANY_sublink_to_join(PlannerInfo
*root
,
21 Relids available_rels
);
22 extern JoinExpr
*convert_EXISTS_sublink_to_join(PlannerInfo
*root
,
25 Relids available_rels
);
26 extern Node
*SS_replace_correlation_vars(PlannerInfo
*root
, Node
*expr
);
27 extern Node
*SS_process_sublinks(PlannerInfo
*root
, Node
*expr
, bool isQual
);
28 extern void SS_finalize_plan(PlannerInfo
*root
, Plan
*plan
,
29 bool attach_initplans
);
30 extern Param
*SS_make_initplan_from_plan(PlannerInfo
*root
, Plan
*plan
,
31 Oid resulttype
, int32 resulttypmod
);
32 extern int SS_assign_worktable_param(PlannerInfo
*root
);
34 #endif /* SUBSELECT_H */