|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.289 2002/09/02 02:47:04 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.290 2002/09/02 05:25:37 momjian Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * this is the "main" module of the postgres backend and
|
|
69 | 69 | extern int optind;
|
70 | 70 | extern char *optarg;
|
71 | 71 |
|
72 |
| -char *debug_query_string; /* used by pgmonitor */ |
| 72 | +char *debug_query_string; /* for pgmonitor and log_min_error_statement*/ |
73 | 73 |
|
74 | 74 | /* Note: whereToSendOutput is initialized for the bootstrap/standalone case */
|
75 | 75 | CommandDest whereToSendOutput = Debug;
|
@@ -563,8 +563,8 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
|
563 | 563 | struct timezone tz;
|
564 | 564 | struct timeval start_t, stop_t;
|
565 | 565 | bool save_Log_duration = Log_duration;
|
566 |
| - |
567 |
| - debug_query_string = query_string->data; /* used by pgmonitor */ |
| 566 | + |
| 567 | + debug_query_string = query_string->data; |
568 | 568 |
|
569 | 569 | /*
|
570 | 570 | * We use save_Log_duration so setting Log_duration to true doesn't
|
@@ -871,8 +871,8 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
|
871 | 871 | (long int) stop_t.tv_sec - start_t.tv_sec,
|
872 | 872 | (long int) stop_t.tv_usec - start_t.tv_usec);
|
873 | 873 | }
|
874 |
| - |
875 |
| - debug_query_string = NULL; /* used by pgmonitor */ |
| 874 | + |
| 875 | + debug_query_string = NULL; |
876 | 876 | }
|
877 | 877 |
|
878 | 878 | /*
|
@@ -1686,7 +1686,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
1686 | 1686 | if (!IsUnderPostmaster)
|
1687 | 1687 | {
|
1688 | 1688 | puts("\nPOSTGRES backend interactive interface ");
|
1689 |
| - puts("$Revision: 1.289 $ $Date: 2002/09/02 02:47:04 $\n"); |
| 1689 | + puts("$Revision: 1.290 $ $Date: 2002/09/02 05:25:37 $\n"); |
1690 | 1690 | }
|
1691 | 1691 |
|
1692 | 1692 | /*
|
@@ -1733,7 +1733,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
1733 | 1733 | QueryCancelPending = false;
|
1734 | 1734 | InterruptHoldoffCount = 1;
|
1735 | 1735 | CritSectionCount = 0; /* should be unnecessary, but... */
|
1736 |
| - debug_query_string = NULL; /* used by pgmonitor */ |
| 1736 | + debug_query_string = NULL; |
1737 | 1737 |
|
1738 | 1738 | /*
|
1739 | 1739 | * Make sure we are in a valid memory context during recovery.
|
|
0 commit comments