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
7db9ea5c
Commit
7db9ea5c
authored
Aug 04, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EXPLAIN VERBOSE prints the plan, and now pretty-prints the plan to
the postmaster log file.
parent
f71b671b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/backend/commands/explain.c
src/backend/commands/explain.c
+7
-4
src/man/explain.l
src/man/explain.l
+3
-2
No files found.
src/backend/commands/explain.c
View file @
7db9ea5c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.2
1 1998/08/04 04:50:15
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.2
2 1998/08/04 15:00:26
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -30,7 +30,7 @@ typedef struct ExplainState
...
@@ -30,7 +30,7 @@ typedef struct ExplainState
{
{
/* options */
/* options */
bool
printCost
;
/* print cost */
bool
printCost
;
/* print cost */
bool
printNodes
;
/* do
pprint
() instead */
bool
printNodes
;
/* do
nodeToString
() instead */
/* other states */
/* other states */
List
*
rtable
;
/* range table */
List
*
rtable
;
/* range table */
}
ExplainState
;
}
ExplainState
;
...
@@ -81,8 +81,11 @@ ExplainQuery(Query *query, bool verbose, CommandDest dest)
...
@@ -81,8 +81,11 @@ ExplainQuery(Query *query, bool verbose, CommandDest dest)
es
->
rtable
=
query
->
rtable
;
es
->
rtable
=
query
->
rtable
;
if
(
es
->
printNodes
)
if
(
es
->
printNodes
)
s
=
pprint
(
plan
);
{
pprint
(
plan
);
/* display in postmaster log file */
s
=
nodeToString
(
plan
);
}
if
(
es
->
printCost
)
if
(
es
->
printCost
)
{
{
s2
=
Explain_PlanToString
(
plan
,
es
);
s2
=
Explain_PlanToString
(
plan
,
es
);
...
...
src/man/explain.l
View file @
7db9ea5c
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/explain.l,v 1.
9 1998/02/10 04:02:59
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/explain.l,v 1.
10 1998/08/04 15:00:28
momjian Exp $
.TH EXPLAIN SQL 06/12/97 PostgreSQL PostgreSQL
.TH EXPLAIN SQL 06/12/97 PostgreSQL PostgreSQL
.SH NAME
.SH NAME
explain - explains statement execution details
explain - explains statement execution details
...
@@ -11,7 +11,8 @@ explain - explains statement execution details
...
@@ -11,7 +11,8 @@ explain - explains statement execution details
.SH DESCRIPTION
.SH DESCRIPTION
This command outputs details about the supplied query. The default
This command outputs details about the supplied query. The default
output is the computed query cost. \f2verbose\f1 displays the full query
output is the computed query cost. \f2verbose\f1 displays the full query
plan and cost.
plan and cost to your screen, and pretty-prints the plan to the postmaster
log file.
.SH EXAMPLES
.SH EXAMPLES
In the examples, the table has a single column of float4.
In the examples, the table has a single column of float4.
...
...
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