mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
process function RTE expressions, which they were previously missing. This allows outer-Var references and subselects to work correctly in the arguments of a function RTE. Install check to prevent function RTEs from cross-referencing Vars of sibling FROM-items, which doesn't make any sense (if you want to join, write a JOIN or WHERE clause).
22 lines
701 B
C
22 lines
701 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* subselect.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SUBSELECT_H
|
|
#define SUBSELECT_H
|
|
|
|
#include "nodes/plannodes.h"
|
|
|
|
extern Index PlannerQueryLevel; /* level of current query */
|
|
extern List *PlannerInitPlan; /* init subplans for current query */
|
|
extern List *PlannerParamVar; /* to get Var from Param->paramid */
|
|
extern int PlannerPlanId; /* to assign unique ID to subquery plans */
|
|
|
|
extern List *SS_finalize_plan(Plan *plan, List *rtable);
|
|
extern Node *SS_replace_correlation_vars(Node *expr);
|
|
extern Node *SS_process_sublinks(Node *expr);
|
|
|
|
#endif /* SUBSELECT_H */
|