8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
* NOTES
14
14
* this is the "main" module of the postgres backend and
74
74
extern int optind ;
75
75
extern char * optarg ;
76
76
77
+ char * debug_query_string ; /* used by pgmonitor */
78
+
77
79
/*
78
80
* for ps display
79
81
*/
@@ -615,6 +617,8 @@ pg_exec_query_string(char *query_string, /* string to execute */
615
617
List * parsetree_list ,
616
618
* parsetree_item ;
617
619
620
+ debug_query_string = query_string ; /* used by pgmonitor */
621
+
618
622
/*
619
623
* Start up a transaction command. All queries generated by the
620
624
* 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 */
853
857
*/
854
858
if (xact_started )
855
859
finish_xact_command ();
860
+
861
+ debug_query_string = NULL ; /* used by pgmonitor */
856
862
}
857
863
858
864
/*
@@ -1703,7 +1709,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1703
1709
if (!IsUnderPostmaster )
1704
1710
{
1705
1711
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" );
1707
1713
}
1708
1714
1709
1715
/*
@@ -1729,7 +1735,6 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
1729
1735
1730
1736
if (sigsetjmp (Warn_restart , 1 ) != 0 )
1731
1737
{
1732
-
1733
1738
/*
1734
1739
* NOTE: if you are tempted to add more code in this if-block,
1735
1740
* 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
1744
1749
QueryCancelPending = false;
1745
1750
InterruptHoldoffCount = 1 ;
1746
1751
CritSectionCount = 0 ; /* should be unnecessary, but... */
1752
+ debug_query_string = NULL ; /* used by pgmonitor */
1747
1753
1748
1754
/*
1749
1755
* Make sure we are in a valid memory context during recovery.
0 commit comments