Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-07-08 Thread David Rowley
On Thu, 9 Jul 2020 at 04:30, Justin Pryzby wrote: > I've just noticed another inconsistency: > For "Sort", there's no space before "kB", but your patch (9bdb300d) uses a > space for text mode. Thanks for the report. I just pushed a fix for that. David

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-07-08 Thread Justin Pryzby
On Fri, Jun 19, 2020 at 02:02:29PM +1200, David Rowley wrote: > if (es->format == EXPLAIN_FORMAT_TEXT) > { > ExplainIndentText(es); > appendStringInfo(es->str, "Sort Method: %s %s: %ldkB\n", ... > As for this patch, I don't think it's unreasonable to have the 3 > possible HashAgg properties on a

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-19 Thread Alvaro Herrera
On 2020-Jun-19, David Rowley wrote: > > + size = offsetof(SharedAggInfo, sinstrument) > > + + pcxt->nworkers * sizeof(AggregateInstrumentation); > > > > => There's a couple places where I'd prefer to see "+" at the end of the > > preceding line (but YMMV). > > I pretty much just copied t

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread David Rowley
On Fri, 19 Jun 2020 at 15:28, Jeff Davis wrote: > > On Thu, 2020-06-18 at 15:37 +1200, David Rowley wrote: > > The attached patch fixes both the missing parallel worker information > > and puts the properties on a single line for format=text. > > Thank you. > > I noticed some strange results in on

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread David Rowley
On Fri, 19 Jun 2020 at 16:06, Justin Pryzby wrote: > > On Fri, Jun 19, 2020 at 03:03:41PM +1200, David Rowley wrote: > > On Fri, 19 Jun 2020 at 14:20, Justin Pryzby wrote: > > > Please be sure to use two spaces between each field ! > > > > > > See earlier discussions (and commits referenced by th

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread Justin Pryzby
On Fri, Jun 19, 2020 at 03:03:41PM +1200, David Rowley wrote: > On Fri, 19 Jun 2020 at 14:20, Justin Pryzby wrote: > > Please be sure to use two spaces between each field ! > > > > See earlier discussions (and commits referenced by the Opened Items page). > > https://www.postgresql.org/message-id/

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread Jeff Davis
On Thu, 2020-06-18 at 15:37 +1200, David Rowley wrote: > The attached patch fixes both the missing parallel worker information > and puts the properties on a single line for format=text. Thank you. I noticed some strange results in one case where one worker had a lot more batches than another. A

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread David Rowley
On Fri, 19 Jun 2020 at 14:20, Justin Pryzby wrote: > Please be sure to use two spaces between each field ! > > See earlier discussions (and commits referenced by the Opened Items page). > https://www.postgresql.org/message-id/20200402054120.gc14...@telsasoft.com > https://www.postgresql.org/messag

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread Justin Pryzby
On Fri, Jun 19, 2020 at 02:02:29PM +1200, David Rowley wrote: > On Fri, 19 Jun 2020 at 01:45, Justin Pryzby wrote: > > Note that "incremental sort" is also new, and splits things up more than > > sort. > > > > See in particular 6a918c3ac8a6b1d8b53cead6fcb7cbd84eee5750, which splits > > things >

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread David Rowley
On Fri, 19 Jun 2020 at 01:45, Justin Pryzby wrote: > Note that "incremental sort" is also new, and splits things up more than sort. > > See in particular 6a918c3ac8a6b1d8b53cead6fcb7cbd84eee5750, which splits > things > up even more. > > -> Incremental Sort (actual rows=70 loops=1) >

Re: Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-18 Thread Justin Pryzby
On Thu, Jun 18, 2020 at 03:37:21PM +1200, David Rowley wrote: > Now that HashAgg can spill to disk, we see a few more details in > EXPLAIN ANALYZE than we did previously, e.g. Peak Memory Usage, Disk > Usage. However, the new code neglected to make EXPLAIN ANALYZE show > these new details for para

Missing HashAgg EXPLAIN ANALYZE details for parallel plans

2020-06-17 Thread David Rowley
Hi, Now that HashAgg can spill to disk, we see a few more details in EXPLAIN ANALYZE than we did previously, e.g. Peak Memory Usage, Disk Usage. However, the new code neglected to make EXPLAIN ANALYZE show these new details for parallel workers. Additionally, the new properties all were using Ex