Allow EXPLAIN on CREATE TABLE AS.
authorPeter Eisentraut
Mon, 27 Oct 2008 08:47:14 +0000 (08:47 +0000)
committerPeter Eisentraut
Mon, 27 Oct 2008 08:47:14 +0000 (08:47 +0000)
doc/src/sgml/ref/explain.sgml
src/backend/parser/gram.y

index 73cea6b00fa69293fa0086f0bae69a7729ffcfa3..77fbdb87e1f7d16ef9c971252f50e3717788c90d 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -78,7 +78,8 @@ EXPLAIN [ ANALYZE ] [ VERBOSE ] statement
     statement will happen as usual.  If you wish to use
     EXPLAIN ANALYZE on an
     INSERTUPDATE,
-    DELETE, or EXECUTE statement
+    DELETECREATE TABLE AS,
+    or EXECUTE statement
     without letting the command affect your data, use this approach:
 
 BEGIN;
@@ -116,8 +117,9 @@ ROLLBACK;
     
      
       Any SELECT, INSERT, UPDATE,
-      DELETE, VALUES, EXECUTE, or
-      DECLARE statement, whose execution plan you wish to see.
+      DELETE, VALUES, EXECUTE,
+      DECLARE, or CREATE TABLE AS
+      statement, whose execution plan you wish to see.
      
     
    
index 3ab62b23cb27a40070a4fc1bed1782a3cbc0b03b..172d45933e4f8ffe22e6c40a15bed74f7ece81c5 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.628 2008/10/22 11:00:34 petere Exp $
+ *   $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.629 2008/10/27 08:47:14 petere Exp $
  *
  * HISTORY
  *   AUTHOR            DATE            MAJOR EVENT
@@ -5898,6 +5898,7 @@ ExplainableStmt:
            | UpdateStmt
            | DeleteStmt
            | DeclareCursorStmt
+           | CreateAsStmt
            | ExecuteStmt                   /* by default all are $$=$1 */
        ;