Skip to content

Commit 2eb6426

Browse files
bloghCommitfest Bot
authored and
Commitfest Bot
committed
Implements logging for parallel worker usage in queries
1 parent 4be318d commit 2eb6426

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/executor/execMain.c

+4
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ standard_ExecutorEnd(QueryDesc *queryDesc)
560560
pgstat_update_parallel_workers_stats((PgStat_Counter) estate->es_parallel_workers_to_launch,
561561
(PgStat_Counter) estate->es_parallel_workers_launched);
562562

563+
LogParallelWorkersIfNeeded(log_parallel_workers,
564+
estate->es_parallel_workers_to_launch,
565+
estate->es_parallel_workers_launched);
566+
563567
/*
564568
* Check that ExecutorFinish was called, unless in EXPLAIN-only mode or if
565569
* execution was aborted.

0 commit comments

Comments
 (0)