agora inbox for pgsql-hackers@postgresql.org  
help / color / mirror / Atom feed
From: benoit <benoit.lobreau@dalibo.com>
Subject: [PATCH v11 3/3] Implements logging for parallel worker usage in queries
Date: Wed, 29 Jan 2025 17:15:25 +0100

---
 src/backend/executor/execMain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 4b30f768680..3ff7a629573 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -499,6 +499,10 @@ standard_ExecutorEnd(QueryDesc *queryDesc)
 		pgstat_update_parallel_workers_stats((PgStat_Counter) estate->es_parallel_workers_to_launch,
 											 (PgStat_Counter) estate->es_parallel_workers_launched);
 
+	LogParallelWorkersIfNeeded(log_parallel_workers,
+							   estate->es_parallel_workers_to_launch,
+							   estate->es_parallel_workers_launched);
+
 	/*
 	 * Check that ExecutorFinish was called, unless in EXPLAIN-only mode. This
 	 * Assert is needed because ExecutorFinish is new as of 9.1, and callers
-- 
2.47.3


--alfjcfchgbd4n3kz--





view thread (1029+ messages)  latest in thread

Message-ID: <no-message-id-889574@localhost>
Permalink:  ../../no-message-id-889574@localhost/
Also on:    postgresql.org/message-id/no-message-id-889574@localhost

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: benoit.lobreau@dalibo.com
  Subject: Re: [PATCH v11 3/3] Implements logging for parallel worker usage in queries
  In-Reply-To: <no-message-id-889574@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox