POC: contrib/unaccent as IMMUTABLE - Mailing list pgsql-hackers

From Petru Ghita
Subject POC: contrib/unaccent as IMMUTABLE
Date
Msg-id CALv_7oVkmY9k6DVp47kqoJZZSp4tN7qjxdTuJrUbc7tNuvDXGQ@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

Would it be possible to mark functions in contrib/unnaccent [1] as IMMUTABLE?

We would gain the possibility to use it to enforce uniqueness.

I understand that the main drawback is that unicode rules are
periodically updated. So it would be needed to reindex indices on
unaccent() after upgrade.

Thank you,
petru ghita

[1] https://github.com/postgres/postgres/tree/master/contrib/unaccent



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel copy
Next
From: Amit Kapila
Date:
Subject: Re: VACUUM PARALLEL option vs. max_parallel_maintenance_workers