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
8cedf57e
Commit
8cedf57e
authored
Dec 07, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce printing from debug level 2 ande layout change.
parent
2e20099e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+20
-11
src/man/postgres.1
src/man/postgres.1
+2
-2
No files found.
src/backend/tcop/postgres.c
View file @
8cedf57e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.2
2 1996/11/27 13:47:05
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.2
3 1996/12/07 04:39:06
momjian Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -83,6 +83,7 @@
...
@@ -83,6 +83,7 @@
* global variables
* global variables
* ----------------
* ----------------
*/
*/
static
bool
DebugPrintQuery
=
false
;
static
bool
DebugPrintPlan
=
false
;
static
bool
DebugPrintPlan
=
false
;
static
bool
DebugPrintParse
=
false
;
static
bool
DebugPrintParse
=
false
;
static
bool
DebugPrintRewrittenParsetree
=
false
;
static
bool
DebugPrintRewrittenParsetree
=
false
;
...
@@ -406,8 +407,13 @@ pg_plan(char *query_string, /* string to execute */
...
@@ -406,8 +407,13 @@ pg_plan(char *query_string, /* string to execute */
continue
;
continue
;
}
}
if
(
DebugPrintQuery
==
true
)
{
printf
(
"
\n
----
\t
query is:
\n
%s
\n
"
,
query_string
);
printf
(
"
\n
"
);
fflush
(
stdout
);
}
if
(
DebugPrintParse
==
true
)
{
if
(
DebugPrintParse
==
true
)
{
printf
(
"
\n
input string is
\"
%s
\"\n
"
,
query_string
);
printf
(
"
\n
----
\t
parser outputs :
\n
"
);
printf
(
"
\n
----
\t
parser outputs :
\n
"
);
nodeDisplay
(
querytree
);
nodeDisplay
(
querytree
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
...
@@ -483,9 +489,7 @@ pg_plan(char *query_string, /* string to execute */
...
@@ -483,9 +489,7 @@ pg_plan(char *query_string, /* string to execute */
}
}
if
(
DebugPrintRewrittenParsetree
==
true
)
{
if
(
DebugPrintRewrittenParsetree
==
true
)
{
printf
(
"
\n
=================
\n
"
);
printf
(
"
\n
----
\t
after rewriting:
\n
"
);
printf
(
" After Rewriting
\n
"
);
printf
(
"=================
\n
"
);
for
(
i
=
0
;
i
<
querytree_list
->
len
;
i
++
)
{
for
(
i
=
0
;
i
<
querytree_list
->
len
;
i
++
)
{
print
(
querytree_list
->
qtrees
[
i
]);
print
(
querytree_list
->
qtrees
[
i
]);
...
@@ -534,7 +538,7 @@ pg_plan(char *query_string, /* string to execute */
...
@@ -534,7 +538,7 @@ pg_plan(char *query_string, /* string to execute */
* ----------------
* ----------------
*/
*/
if
(
DebugPrintPlan
==
true
)
{
if
(
DebugPrintPlan
==
true
)
{
printf
(
"
\n
P
lan is :
\n
"
);
printf
(
"
\n
----
\t
p
lan is :
\n
"
);
nodeDisplay
(
plan
);
nodeDisplay
(
plan
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
@@ -646,7 +650,7 @@ pg_eval_dest(char *query_string, /* string to execute */
...
@@ -646,7 +650,7 @@ pg_eval_dest(char *query_string, /* string to execute */
* ----------------
* ----------------
*/
*/
if
(
DebugPrintPlan
==
true
)
{
if
(
DebugPrintPlan
==
true
)
{
printf
(
"
\n
P
lan is :
\n
"
);
printf
(
"
\n
---- p
lan is :
\n
"
);
nodeDisplay
(
plan
);
nodeDisplay
(
plan
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
@@ -884,10 +888,15 @@ PostgresMain(int argc, char *argv[])
...
@@ -884,10 +888,15 @@ PostgresMain(int argc, char *argv[])
case
'd'
:
/* debug level */
case
'd'
:
/* debug level */
flagQ
=
0
;
flagQ
=
0
;
DebugPrintPlan
=
true
;
DebugLvl
=
(
short
)
atoi
(
optarg
);
if
(
DebugLvl
>
1
)
DebugPrintQuery
=
true
;
if
(
DebugLvl
>
2
)
{
DebugPrintParse
=
true
;
DebugPrintParse
=
true
;
DebugPrintPlan
=
true
;
DebugPrintRewrittenParsetree
=
true
;
DebugPrintRewrittenParsetree
=
true
;
DebugLvl
=
(
short
)
atoi
(
optarg
);
}
break
;
break
;
case
'E'
:
case
'E'
:
...
@@ -1262,7 +1271,7 @@ PostgresMain(int argc, char *argv[])
...
@@ -1262,7 +1271,7 @@ PostgresMain(int argc, char *argv[])
*/
*/
if
(
IsUnderPostmaster
==
false
)
{
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.2
2 $ $Date: 1996/11/27 13:47:05
$"
);
puts
(
"$Revision: 1.2
3 $ $Date: 1996/12/07 04:39:06
$"
);
}
}
/* ----------------
/* ----------------
...
...
src/man/postgres.1
View file @
8cedf57e
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.
1 1996/11/14 10:17:46 scrappy
Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.
2 1996/12/07 04:39:38 momjian
Exp $
.TH POSTGRES95 UNIX 11/05/95 Postgres95 Postgres95
.TH POSTGRES95 UNIX 11/05/95 Postgres95 Postgres95
.SH NAME
.SH NAME
postgres \(em the Postgres backend server
postgres \(em the Postgres backend server
...
@@ -84,7 +84,7 @@ Specifies \*(lqquiet\*(rq mode.
...
@@ -84,7 +84,7 @@ Specifies \*(lqquiet\*(rq mode.
.BR "-d" " debug_level"
.BR "-d" " debug_level"
Turns on debugging at the numeric level
Turns on debugging at the numeric level
.IR "debug_level" .
.IR "debug_level" .
Turning on debugging will cause query
parse trees
and query plans to
Turning on debugging will cause query
, parse trees,
and query plans to
be displayed.
be displayed.
.TP
.TP
.BR "-o" " output_file"
.BR "-o" " output_file"
...
...
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