Re: BUG #19425: Parametric settings in collation not working in rule syntax - Mailing list pgsql-bugs

From Daniel Verite
Subject Re: BUG #19425: Parametric settings in collation not working in rule syntax
Date
Msg-id 0cf43ecb-90d0-4eb2-8dd7-f5d60ba2b009@manitou-mail.org
Whole thread Raw
In response to BUG #19425: Parametric settings in collation not working in rule syntax  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form wrote:

> But, I also want to add a tailoring rule. For the simplicity we will say
> that I want to add 'p < q'
> CREATE COLLATION IF NOT EXISTS und_ci_ai2(
>     provider = icu,
>     locale = 'und-u-ka-shifted-kc-false-ks-level1',
>     deterministic = false,
>     rules = $$
>         & 'p' < 'q'
>     $$
> );
>
> But, and this is my problem, the previous request doesn't seem to work
> anymore. It doesn't return '1' :

This looks the same as bug #18771 discussed at
https://www.postgresql.org/message-id/flat/18771-98bb23e455b0f367%40postgresql.org
and

https://www.postgresql.org/message-id/spHSrzQa0K_-Sqq9rNK-d6kelbfJG-z4XP6vn8tliiCHmjNYy45g2QOD92mrsNYqBpvj8Fi-qw4kXZhZmKjSVevzRSOvh6XzcNZBIV5wA3E=@protonmail.com

There's a simple fix available at
https://commitfest.postgresql.org/patch/6084/

Hopefully it will make it into the next major release, but so far it has been
lacking
reviews.
If you're able to compile Postgres, you may test the fix with your case and
report on
the results.


Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/



pgsql-bugs by date:

Previous
From: Rafia Sabih
Date:
Subject: Re: Two issues with REFRESH MATERIALIZED VIEW CONCURRENTLY
Next
From: Nathan Bossart
Date:
Subject: Re: Revoke Connect Privilege from Database not working