Add debug_query_string global variable for pgmonitor and debugging use.
This commit is contained in:
parent
232d8fa3c4
commit
25efda227d
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.217 2001/03/26 17:00:54 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.218 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("\nPOSTGRES backend interactive interface ");
|
||||
puts("$Revision: 1.217 $ $Date: 2001/03/26 17:00:54 $\n");
|
||||
puts("$Revision: 1.218 $ $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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user