diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/nodes/params.h | 5 | ||||
-rw-r--r-- | src/include/nodes/parsenodes.h | 8 | ||||
-rw-r--r-- | src/include/optimizer/planmain.h | 4 |
3 files changed, 9 insertions, 8 deletions
diff --git a/src/include/nodes/params.h b/src/include/nodes/params.h index 93b2c03cee9..12ef269e610 100644 --- a/src/include/nodes/params.h +++ b/src/include/nodes/params.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/params.h,v 1.40 2010/01/02 16:58:04 momjian Exp $ + * $PostgreSQL: pgsql/src/include/nodes/params.h,v 1.41 2010/01/15 22:36:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -103,7 +103,4 @@ typedef struct ParamExecData /* Functions found in src/backend/nodes/params.c */ extern ParamListInfo copyParamList(ParamListInfo from); -extern void setupParserWithParamList(struct ParseState *pstate, - ParamListInfo params); - #endif /* PARAMS_H */ diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 9a0bb8eec3f..a03597c9f37 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.423 2010/01/06 05:31:14 itagaki Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.424 2010/01/15 22:36:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2260,12 +2260,16 @@ typedef struct VacuumStmt /* ---------------------- * Explain Statement + * + * The "query" field is either a raw parse tree (SelectStmt, InsertStmt, etc) + * or a Query node if parse analysis has been done. Note that rewriting and + * planning of the query are always postponed until execution of EXPLAIN. * ---------------------- */ typedef struct ExplainStmt { NodeTag type; - Node *query; /* the query (as a raw parse tree) */ + Node *query; /* the query (see comments above) */ List *options; /* list of DefElem nodes */ } ExplainStmt; diff --git a/src/include/optimizer/planmain.h b/src/include/optimizer/planmain.h index 7e59cd4a6be..024142250ac 100644 --- a/src/include/optimizer/planmain.h +++ b/src/include/optimizer/planmain.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/planmain.h,v 1.123 2010/01/02 16:58:07 momjian Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/planmain.h,v 1.124 2010/01/15 22:36:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -122,7 +122,7 @@ extern void fix_opfuncids(Node *node); extern void set_opfuncid(OpExpr *opexpr); extern void set_sa_opfuncid(ScalarArrayOpExpr *opexpr); extern void record_plan_function_dependency(PlannerGlobal *glob, Oid funcid); -extern void extract_query_dependencies(List *queries, +extern void extract_query_dependencies(Node *query, List **relationOids, List **invalItems); |