pgsql: Allow NULL version for individual collations.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Allow NULL version for individual collations.

Thomas Munro-4
Allow NULL version for individual collations.

Remove the documented restriction that collation providers must either
return NULL for all collations or non-NULL for all collations.

Use NULL for glibc collations like "C.UTF-8", which might otherwise lead
future proposed commits to force unnecessary index rebuilds.

Reviewed-by: Peter Eisentraut <[hidden email]>
Discussion: https://postgr.es/m/CA%2BhUKGJvqup3s%2BJowVTcacZADO6dOhfdBmvOPHLS3KXUJu41Jw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/382a821907e76bf6068492a164fdfc57578391f4

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)