Refactor get_collation_current_version().
authorThomas Munro <tmunro@postgresql.org>
Mon, 22 Feb 2021 10:03:27 +0000 (23:03 +1300)
committerThomas Munro <tmunro@postgresql.org>
Mon, 22 Feb 2021 10:32:16 +0000 (23:32 +1300)
commitbeb4480c853a60ec43bd3f1a71252890dd234f10
treeea3c7ddcb1b9a5a5e44c6f867a9846ad79fd19c2
parent9cf184cc0599b6e65e7e5ecd9d91cd42e278bcd8
Refactor get_collation_current_version().

The code paths for three different OSes finished up with three different
ways of excluding C[.xxx] and POSIX from consideration.  Merge them.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/20210117215940.GE8560%40telsasoft.com
src/backend/utils/adt/pg_locale.c