Re: Hash aggregation shows only the last execution's stats for parallel workers

From: Tatsuya Kawata <kawatatatsuya0913(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Hash aggregation shows only the last execution's stats for parallel workers
Date: 2026-11-24 12:59:52
Message-ID: CAHza6qckKkQZPc1MjgnE955RLZr_BA=3UnS-OCk=FB-LJ5CRzg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi David,

> This seems to be a duplicate of [1].

Sorry, I missed that thread.

> Can you state the other patches version isn't correct?

The version in that thread is also correct, and the two give the same
results. (Just to note, the code under "You've got" is the version in
that thread, and the one with Max() is mine.)
Actually, I first wrote this patch with if...else too, but I went with
this form because I couldn't find a similar if...else in other nodes,
and it can be written more simply without one.

Since the thread you pointed to came first, I'll withdraw this one.
Please go ahead with that thread.

Regards,
Tatsuya Kawata

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2026-11-24 13:04:52 Re: new clang warnings about unused global variables
Previous Message Aleksander Alekseev 2026-11-24 12:15:02 Re: Two fixes for parallel query cleanup: DSM detach order and a stray statement timeout