Re: pgstat_report_activity() and parallel CREATE INDEX (was: Parallelindex creation & pg_stat_activity) - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pgstat_report_activity() and parallel CREATE INDEX (was: Parallelindex creation & pg_stat_activity)
Date
Msg-id CA+TgmoYShQUgjxUfw8DtZAsJLAfWr7qndYSdc0tFAMcz1x47ew@mail.gmail.com
Whole thread Raw
In response to Re: pgstat_report_activity() and parallel CREATE INDEX (was: Parallelindex creation & pg_stat_activity)  (Peter Geoghegan <pg@bowt.ie>)
Responses RE: pgstat_report_activity() and parallel CREATE INDEX (was: Parallelindex creation & pg_stat_activity)  (Phil Florent <philflorent@hotmail.com>)
List pgsql-hackers
On Wed, Mar 7, 2018 at 8:53 PM, Peter Geoghegan <pg@bowt.ie> wrote:
> On Thu, Mar 1, 2018 at 2:47 PM, Peter Geoghegan <pg@bowt.ie> wrote:
>> No. Just an oversight. Looks like _bt_parallel_build_main() should
>> call pgstat_report_activity(), just like ParallelQueryMain().
>>
>> I'll come up with a patch soon.
>
> Attached patch has parallel CREATE INDEX propagate debug_query_string
> to workers. Workers go on to use this string as their own
> debug_query_string, as well as registering it using
> pgstat_report_activity(). Parallel CREATE INDEX pg_stat_activity
> entries will have a query text, too, which addresses Phil's complaint.

Committed.  Thanks for the patch.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Partition-wise aggregation/grouping
Next
From: Robert Haas
Date:
Subject: Re: Updating parallel.sgml's treatment of parallel joins