diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-26 23:34:18 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-26 23:34:18 +0000 |
commit | d4382c4ae7ea1e272f4fee388aac8ff99421471a (patch) | |
tree | a6fdb904bcdb849f15f68c9ad5541186d0b4216e /src/include/commands/prepare.h | |
parent | a07e5acebbc0647c82c8577f17f912561e69aff4 (diff) |
Extend EXPLAIN to allow generic options to be specified.
The original syntax made it difficult to add options without making them
into reserved words. This change parenthesizes the options to avoid that
problem, and makes provision for an explicit (and perhaps non-Boolean)
value for each option. The original syntax is still supported, but only
for the two original options ANALYZE and VERBOSE.
As a test case, add a COSTS option that can suppress the planner cost
estimates. This may be useful for including EXPLAIN output in the regression
tests, which are otherwise unable to cope with cross-platform variations in
cost estimates.
Robert Haas
Diffstat (limited to 'src/include/commands/prepare.h')
-rw-r--r-- | src/include/commands/prepare.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h index f52f0012895..4f9cb262275 100644 --- a/src/include/commands/prepare.h +++ b/src/include/commands/prepare.h @@ -6,14 +6,14 @@ * * Copyright (c) 2002-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/commands/prepare.h,v 1.30 2009/01/01 17:23:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/prepare.h,v 1.31 2009/07/26 23:34:18 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef PREPARE_H #define PREPARE_H -#include "executor/executor.h" +#include "commands/explain.h" #include "utils/plancache.h" #include "utils/timestamp.h" @@ -40,9 +40,8 @@ extern void ExecuteQuery(ExecuteStmt *stmt, const char *queryString, ParamListInfo params, DestReceiver *dest, char *completionTag); extern void DeallocateQuery(DeallocateStmt *stmt); -extern void ExplainExecuteQuery(ExecuteStmt *execstmt, ExplainStmt *stmt, - const char *queryString, - ParamListInfo params, TupOutputState *tstate); +extern void ExplainExecuteQuery(ExecuteStmt *execstmt, ExplainState *es, + const char *queryString, ParamListInfo params); /* Low-level access to stored prepared statements */ extern void StorePreparedStatement(const char *stmt_name, |