Re: Fix for fragile code in hashtext()

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Haibo Yan <tristan(dot)yim(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fix for fragile code in hashtext()
Date: 2026-08-20 21:08:24
Message-ID: 845b793eeecd74864bd950bd8077c554f44a686d.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Haibo Yan 2026-08-20 21:53:32 Re: Fix CPU cost of right-semi and right-anti hash joins
Previous Message Jeff Davis 2026-08-20 20:32:39 Re: Fix for fragile code in ltree/crc32.c