aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/copyfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-07-26 23:34:18 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-07-26 23:34:18 +0000
commitd4382c4ae7ea1e272f4fee388aac8ff99421471a (patch)
treea6fdb904bcdb849f15f68c9ad5541186d0b4216e /src/backend/nodes/copyfuncs.c
parenta07e5acebbc0647c82c8577f17f912561e69aff4 (diff)
downloadpostgresql-d4382c4ae7ea1e272f4fee388aac8ff99421471a.tar.gz
postgresql-d4382c4ae7ea1e272f4fee388aac8ff99421471a.zip
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/backend/nodes/copyfuncs.c')
-rw-r--r--src/backend/nodes/copyfuncs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 0111ac4a9d9..0752cbfc00e 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -15,7 +15,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.434 2009/07/20 02:42:27 adunstan Exp $
+ * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.435 2009/07/26 23:34:17 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2875,8 +2875,7 @@ _copyExplainStmt(ExplainStmt *from)
ExplainStmt *newnode = makeNode(ExplainStmt);
COPY_NODE_FIELD(query);
- COPY_SCALAR_FIELD(verbose);
- COPY_SCALAR_FIELD(analyze);
+ COPY_NODE_FIELD(options);
return newnode;
}