| From: | Bruce Momjian <bruce(at)momjian(dot)us> | 
|---|---|
| To: | David Rowley <dgrowleyml(at)gmail(dot)com> | 
| Cc: | PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org> | 
| Subject: | Re: PG 18 release notes draft committed | 
| Date: | 2025-05-05 16:31:28 | 
| Message-ID: | aBjn4Mhv5FrJ-366@momjian.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Mon, May  5, 2025 at 10:14:22PM +1200, David Rowley wrote:
> On Fri, 2 May 2025 at 14:44, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > You can see the most current HTML-built version here:
> >
> >         https://momjian.us/pgsql_docs/release-18.html
> 
> Thanks for working on these.
> 
> For "Improve the performance of hash joins (David Rowley)", 0f5738202
> did the same thing for GROUP BY and hashed subplans too. It might be
> worth adjusting this to some more generic text which covers all of
> these. Something like "Speed up hash value generation in Hash Join,
> GROUP BY, hashed Subplan and hashed set operations</p><p>This change
> also allows JIT compilation for obtaining hash values for these
> operations". The set operations I likely should have mentioned in the
> commit message.
Okay, text added.
> There's also Jeff's work in cc721c459, 4d143509c, a0942f441, 626df47ad
> which does work to reduce the memory overheads of hashed GROUP BY,
> hashed Subplans and hashed set operations. I think Jeff might have
> understated the possible performance gains from these commits. I very
> much think this is worth something like "Reduce memory overheads for
> hashed GROUP BY, subplans and set operation processing (Jeff Davis)".
> 
> A quick test with: explain analyze select a from
> generate_series(1,1000000) a group by a;
> 
> v17: Batches: 1  Memory Usage: 90145kB
> v18: Batches: 1  Memory Usage: 57385kB
> 
> A 37% reduction for this case. Not insignificant.
Commits added and Jeff's name added, patch attached.
-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        https://momjian.us
  EDB                                      https://enterprisedb.com
  Do not let urgent matters crowd out time for investment in the future.
| Attachment | Content-Type | Size | 
|---|---|---|
| master.diff | text/x-diff | 1.4 KB | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2025-05-05 18:55:46 | Re: Fix slot synchronization with two_phase decoding enabled | 
| Previous Message | Yura Sokolov | 2025-05-05 16:21:29 | Re: Fix a race condition in ConditionVariableTimedSleep() |