Re: [19] Proposal: function markers to indicate collation/ctype sensitivity - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: [19] Proposal: function markers to indicate collation/ctype sensitivity
Date
Msg-id f111a9ff69d4eb1efb84578a0a006c2668bb984c.camel@j-davis.com
Whole thread Raw
In response to Re: [19] Proposal: function markers to indicate collation/ctype sensitivity  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: [19] Proposal: function markers to indicate collation/ctype sensitivity
List 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




pgsql-hackers by date:

Previous
From: Maciek Sakrejda
Date:
Subject: Re: [19] Proposal: function markers to indicate collation/ctype sensitivity
Next
From: Andres Freund
Date:
Subject: Re: ABI Compliance Checker GSoC Project