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
25efda22
Commit
25efda22
authored
Apr 14, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug_query_string global variable for pgmonitor and debugging use.
parent
232d8fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+9
-3
No files found.
src/backend/tcop/postgres.c
View file @
25efda22
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21
7 2001/03/26 17:00:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.21
8 2001/04/14 19:11:45
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -74,6 +74,8 @@
extern
int
optind
;
extern
char
*
optarg
;
char
*
debug_query_string
;
/* used by pgmonitor */
/*
* for ps display
*/
...
...
@@ -615,6 +617,8 @@ pg_exec_query_string(char *query_string, /* string to execute */
List
*
parsetree_list
,
*
parsetree_item
;
debug_query_string
=
query_string
;
/* used by pgmonitor */
/*
* Start up a transaction command. All queries generated by the
* query_string will be in this same command block, *unless* we find a
...
...
@@ -853,6 +857,8 @@ pg_exec_query_string(char *query_string, /* string to execute */
*/
if
(
xact_started
)
finish_xact_command
();
debug_query_string
=
NULL
;
/* used by pgmonitor */
}
/*
...
...
@@ -1703,7 +1709,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.21
7 $ $Date: 2001/03/26 17:00:54
$
\n
"
);
puts
(
"$Revision: 1.21
8 $ $Date: 2001/04/14 19:11:45
$
\n
"
);
}
/*
...
...
@@ -1729,7 +1735,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
sigsetjmp
(
Warn_restart
,
1
)
!=
0
)
{
/*
* NOTE: if you are tempted to add more code in this if-block,
* consider the probability that it should be in
...
...
@@ -1744,6 +1749,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
QueryCancelPending
=
false
;
InterruptHoldoffCount
=
1
;
CritSectionCount
=
0
;
/* should be unnecessary, but... */
debug_query_string
=
NULL
;
/* used by pgmonitor */
/*
* Make sure we are in a valid memory context during recovery.
...
...
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