statement will happen as usual. If you wish to use
EXPLAIN ANALYZE on an
INSERT, UPDATE,
- DELETE, or EXECUTE statement
+ DELETE, CREATE TABLE AS,
+ or EXECUTE statement
without letting the command affect your data, use this approach:
BEGIN;
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.
*
*
* 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
| UpdateStmt
| DeleteStmt
| DeclareCursorStmt
+ | CreateAsStmt
| ExecuteStmt /* by default all are $$=$1 */
;