aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2013-09-06 19:42:00 -0400
committerNoah Misch <noah@leadboat.com>2013-09-06 19:42:00 -0400
commitb8104730c8eae1f81ccbc8673bbd2a3566e660ae (patch)
tree199f82c73cbcad810ef0a9e3bc2c86a1fca99fd8 /src/backend/tcop/postgres.c
parent277607d600fb71e25082b94302ca1716403cd0bc (diff)
downloadpostgresql-b8104730c8eae1f81ccbc8673bbd2a3566e660ae.tar.gz
postgresql-b8104730c8eae1f81ccbc8673bbd2a3566e660ae.zip
Don't VALGRIND_PRINTF() each query string.
Doing so was helpful for some Valgrind usage and distracting for other usage. One can achieve the same effect by changing log_statement and pointing both PostgreSQL and Valgrind logging to stderr. Per gripe from Andres Freund.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index ddd60dee4f4..e56dbfb8006 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -69,7 +69,6 @@
#include "tcop/tcopprot.h"
#include "tcop/utility.h"
#include "utils/lsyscache.h"
-#include "utils/memdebug.h"
#include "utils/memutils.h"
#include "utils/ps_status.h"
#include "utils/snapmgr.h"
@@ -847,10 +846,6 @@ exec_simple_query(const char *query_string)
TRACE_POSTGRESQL_QUERY_START(query_string);
-#ifdef USE_VALGRIND
- VALGRIND_PRINTF("statement: %s\n", query_string);
-#endif
-
/*
* We use save_log_statement_stats so ShowUsage doesn't report incorrect
* results because ResetUsage wasn't called.