88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.217 2001/03/26 17:00:54 momjian Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.218 2001/04/14 19:11:45 momjian Exp $
1212 *
1313 * NOTES
1414 * this is the "main" module of the postgres backend and
7474extern int optind ;
7575extern char * optarg ;
7676
77+ char * debug_query_string ; /* used by pgmonitor */
78+
7779/*
7880 * for ps display
7981 */
@@ -615,6 +617,8 @@ pg_exec_query_string(char *query_string, /* string to execute */
615617 List * parsetree_list ,
616618 * parsetree_item ;
617619
620+ debug_query_string = query_string ; /* used by pgmonitor */
621+
618622 /*
619623 * Start up a transaction command. All queries generated by the
620624 * 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 */
853857 */
854858 if (xact_started )
855859 finish_xact_command ();
860+
861+ debug_query_string = NULL ; /* used by pgmonitor */
856862}
857863
858864/*
@@ -1703,7 +1709,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
17031709 if (!IsUnderPostmaster )
17041710 {
17051711 puts ("\nPOSTGRES backend interactive interface " );
1706- puts ("$Revision: 1.217 $ $Date: 2001/03/26 17:00:54 $\n" );
1712+ puts ("$Revision: 1.218 $ $Date: 2001/04/14 19:11:45 $\n" );
17071713 }
17081714
17091715 /*
@@ -1729,7 +1735,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
17291735
17301736 if (sigsetjmp (Warn_restart , 1 ) != 0 )
17311737 {
1732-
17331738 /*
17341739 * NOTE: if you are tempted to add more code in this if-block,
17351740 * 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
17441749 QueryCancelPending = false;
17451750 InterruptHoldoffCount = 1 ;
17461751 CritSectionCount = 0 ; /* should be unnecessary, but... */
1752+ debug_query_string = NULL ; /* used by pgmonitor */
17471753
17481754 /*
17491755 * Make sure we are in a valid memory context during recovery.
0 commit comments