diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-15 22:36:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-15 22:36:35 +0000 |
commit | 08f8d478ebc37e42f3ced07d17dae83d6a9a3810 (patch) | |
tree | aedef12bd96c3a789c72ae38e3cfab39801d4556 /src/include/optimizer/planmain.h | |
parent | 00b5ccebdd0d2925a2e5db0fdf067ea4b7bae799 (diff) | |
download | postgresql-08f8d478ebc37e42f3ced07d17dae83d6a9a3810.tar.gz postgresql-08f8d478ebc37e42f3ced07d17dae83d6a9a3810.zip |
Do parse analysis of an EXPLAIN's contained statement during the normal
parse analysis phase, rather than at execution time. This makes parameter
handling work the same as it does in ordinary plannable queries, and in
particular fixes the incompatibility that Pavel pointed out with plpgsql's
new handling of variable references. plancache.c gets a little bit
grottier, but the alternatives seem worse.
Diffstat (limited to 'src/include/optimizer/planmain.h')
-rw-r--r-- | src/include/optimizer/planmain.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |