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/nodes/parsenodes.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/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index b54b170425c..5947c6acc98 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.397 2009/07/20 02:42:28 adunstan Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.398 2009/07/26 23:34:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2193,8 +2193,7 @@ typedef struct ExplainStmt { NodeTag type; Node *query; /* the query (as a raw parse tree) */ - bool verbose; /* print plan info */ - bool analyze; /* get statistics by executing plan */ + List *options; /* list of DefElem nodes */ } ExplainStmt; /* ---------------------- |