Skip to content

Commit b810473

Browse files
committed
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.
1 parent 277607d commit b810473

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/tcop/postgres.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
#include "tcop/tcopprot.h"
7070
#include "tcop/utility.h"
7171
#include "utils/lsyscache.h"
72-
#include "utils/memdebug.h"
7372
#include "utils/memutils.h"
7473
#include "utils/ps_status.h"
7574
#include "utils/snapmgr.h"
@@ -847,10 +846,6 @@ exec_simple_query(const char *query_string)
847846

848847
TRACE_POSTGRESQL_QUERY_START(query_string);
849848

850-
#ifdef USE_VALGRIND
851-
VALGRIND_PRINTF("statement: %s\n", query_string);
852-
#endif
853-
854849
/*
855850
* We use save_log_statement_stats so ShowUsage doesn't report incorrect
856851
* results because ResetUsage wasn't called.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy