Re: Fix for fragile code in hashtext() - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Fix for fragile code in hashtext()
Date
Msg-id 845b793eeecd74864bd950bd8077c554f44a686d.camel@j-davis.com
Whole thread
List pgsql-hackers
On Wed, 2026-08-19 at 01:14 -0700, Haibo Yan wrote:
> Perhaps the pg_strnxfrm() comment could state more explicitly that
> the first call 
> is only for buffer sizing, while the return value from the actual
> transformation is 
> the authoritative result length. That seems to be the assumption that
> was missed 
> here.

Done, and committed. Thank you!

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: walsummarizer can get stuck when switching timelines
Next
From: Haibo Yan
Date:
Subject: Re: Fix CPU cost of right-semi and right-anti hash joins