We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ee433 commit 39a5f2aCopy full SHA for 39a5f2a
src/bin/pgbench/pgbench.c
@@ -3297,10 +3297,17 @@ executeMetaCommand(CState *st, instr_time *now)
3297
3298
if (unlikely(__pg_log_level <= PG_LOG_DEBUG))
3299
{
3300
- fprintf(stderr, "client %d executing \\%s", st->id, argv[0]);
+ PQExpBufferData buf;
3301
+
3302
+ initPQExpBuffer(&buf);
3303
3304
+ printfPQExpBuffer(&buf, "client %d executing \\%s", st->id, argv[0]);
3305
for (int i = 1; i < argc; i++)
- fprintf(stderr, " %s", argv[i]);
- fprintf(stderr, "\n");
3306
+ appendPQExpBuffer(&buf, " %s", argv[i]);
3307
3308
+ pg_log_debug("%s", buf.data);
3309
3310
+ termPQExpBuffer(&buf);
3311
}
3312
3313
if (command->meta == META_SLEEP)
0 commit comments