Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6a8babc

Browse files
committed
Remove documentation that says debug_query_string is only used by
pgmonitor. Now log_min_error_statement uses it.
1 parent ed7f780 commit 6a8babc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/backend/tcop/postgres.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -69,7 +69,7 @@
6969
extern int optind;
7070
extern char *optarg;
7171

72-
char *debug_query_string; /* used by pgmonitor */
72+
char *debug_query_string; /* for pgmonitor and log_min_error_statement*/
7373

7474
/* Note: whereToSendOutput is initialized for the bootstrap/standalone case */
7575
CommandDest whereToSendOutput = Debug;
@@ -563,8 +563,8 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
563563
struct timezone tz;
564564
struct timeval start_t, stop_t;
565565
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;
568568

569569
/*
570570
* 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 */
871871
(long int) stop_t.tv_sec - start_t.tv_sec,
872872
(long int) stop_t.tv_usec - start_t.tv_usec);
873873
}
874-
875-
debug_query_string = NULL; /* used by pgmonitor */
874+
875+
debug_query_string = NULL;
876876
}
877877

878878
/*
@@ -1686,7 +1686,7 @@ PostgresMain(int argc, char *argv[], const char *username)
16861686
if (!IsUnderPostmaster)
16871687
{
16881688
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");
16901690
}
16911691

16921692
/*
@@ -1733,7 +1733,7 @@ PostgresMain(int argc, char *argv[], const char *username)
17331733
QueryCancelPending = false;
17341734
InterruptHoldoffCount = 1;
17351735
CritSectionCount = 0; /* should be unnecessary, but... */
1736-
debug_query_string = NULL; /* used by pgmonitor */
1736+
debug_query_string = NULL;
17371737

17381738
/*
17391739
* Make sure we are in a valid memory context during recovery.

0 commit comments

Comments
 (0)