Content-Length: 275363 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b8104730c8eae1f81ccbc8673bbd2a3566e660ae

0B Don't VALGRIND_PRINTF() each query string. · postgrespro/postgres_cluster@b810473 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/b8104730c8eae1f81ccbc8673bbd2a3566e660ae

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy