initdb: Set collversion for standard collation UNICODE
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 12 May 2023 07:45:50 +0000 (09:45 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 12 May 2023 08:03:05 +0000 (10:03 +0200)
commite32701b8d285cd402f75fc9059d083e89ee8166b
tree35dad8be0adc4ddbec55e9f7637beaf7994f8d81
parentc8b881d21fd8e0214bc43280d6231cc2c6ef55ef
initdb: Set collversion for standard collation UNICODE

Since the behavior of the UNICODE collation can change with new
ICU/Unicode versions, we need to apply the versioning mechanism to it.
We do this with an UPDATE command in initdb; this is similar to how we
put the collation version into pg_database already.

Reported-by: Daniel Verite <daniel@manitou-mail.org>
Discussion: https://www.postgresql.org/message-id/49417853-7bdd-4b23-a4e9-04c7aff33821@manitou-mail.org
src/bin/initdb/initdb.c
src/include/catalog/catversion.h