Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5163b94e
Commit
5163b94e
authored
Oct 27, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow EXPLAIN on CREATE TABLE AS.
parent
e5da8e15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
doc/src/sgml/ref/explain.sgml
doc/src/sgml/ref/explain.sgml
+6
-4
src/backend/parser/gram.y
src/backend/parser/gram.y
+2
-1
No files found.
doc/src/sgml/ref/explain.sgml
View file @
5163b94e
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.4
2 2008/04/18 01:42:17 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.4
3 2008/10/27 08:47:13 petere
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -78,7 +78,8 @@ EXPLAIN [ ANALYZE ] [ VERBOSE ] <replaceable class="parameter">statement</replac
...
@@ -78,7 +78,8 @@ EXPLAIN [ ANALYZE ] [ VERBOSE ] <replaceable class="parameter">statement</replac
statement will happen as usual. If you wish to use
statement will happen as usual. If you wish to use
<command>EXPLAIN ANALYZE</command> on an
<command>EXPLAIN ANALYZE</command> on an
<command>INSERT</command>, <command>UPDATE</command>,
<command>INSERT</command>, <command>UPDATE</command>,
<command>DELETE</command>, or <command>EXECUTE</command> statement
<command>DELETE</command>, <command>CREATE TABLE AS</command>,
or <command>EXECUTE</command> statement
without letting the command affect your data, use this approach:
without letting the command affect your data, use this approach:
<programlisting>
<programlisting>
BEGIN;
BEGIN;
...
@@ -116,8 +117,9 @@ ROLLBACK;
...
@@ -116,8 +117,9 @@ ROLLBACK;
<listitem>
<listitem>
<para>
<para>
Any <command>SELECT</>, <command>INSERT</>, <command>UPDATE</>,
Any <command>SELECT</>, <command>INSERT</>, <command>UPDATE</>,
<command>DELETE</>, <command>VALUES</>, <command>EXECUTE</>, or
<command>DELETE</>, <command>VALUES</>, <command>EXECUTE</>,
<command>DECLARE</> statement, whose execution plan you wish to see.
<command>DECLARE</>, or <command>CREATE TABLE AS</command>
statement, whose execution plan you wish to see.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
src/backend/parser/gram.y
View file @
5163b94e
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.62
8 2008/10/22 11:00:3
4 petere Exp $
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.62
9 2008/10/27 08:47:1
4 petere Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -5898,6 +5898,7 @@ ExplainableStmt:
...
@@ -5898,6 +5898,7 @@ ExplainableStmt:
| UpdateStmt
| UpdateStmt
| DeleteStmt
| DeleteStmt
| DeclareCursorStmt
| DeclareCursorStmt
| CreateAsStmt
| ExecuteStmt /* by default all are $$=$1 */
| ExecuteStmt /* by default all are $$=$1 */
;
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment