Re: [19] Proposal: function markers to indicate collation/ctype sensitivity

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [19] Proposal: function markers to indicate collation/ctype sensitivity
Date: 2025-06-04 15:53:53
Message-ID: f111a9ff69d4eb1efb84578a0a006c2668bb984c.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2025-06-04 at 11:33 -0400, David E. Wheeler wrote:
> I understand the need to trace these dependencies, but as a function
> developer with relatively modest understanding of collation nuances,
> I’m wondering how I’d know I needed these markers. It seems
> complicated. Which leads me to think that adoption would be low
> outside of core.

In the proposal, I mentioned adding runtime checks as future work.
Perhaps that would be a requirement for this proposal so that users
could get a warning? We could also make the markers negative, so that
the default is to assume that a UDF with collatable inputs depends on
all of the behaviors.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-06-04 16:10:58 Re: ABI Compliance Checker GSoC Project
Previous Message Maciek Sakrejda 2025-06-04 15:48:23 Re: [19] Proposal: function markers to indicate collation/ctype sensitivity