Skip to content

Commit 75f8a83

Browse files
panovotnpraiskup
authored andcommitted
Warn about possible glibc collation changes
* bin/postgresql-setup.in: Print warning about possible glibc collation on successful upgrade.
1 parent 4fad939 commit 75f8a83

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
New in 8.3 version:
44

5+
* postgresql-setup prints warning about possible glibc collation on
6+
successful upgrade.
7+
58
* postgresql-setup creates correct 'log_directory' based on PG version
69
(the default changed from $datadir/pg_log to $datadir/log in v10).
710

bin/postgresql-setup.in

+10
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ Environment:
121121
PGSETUP_DEBUG Set to '1' if you want to see very verbose shell
122122
debugging output."
123123

124+
# Warning about possible glibc collation changes BZ#1668301
125+
GLIBC_COLLATION_WARN_STRING="\
126+
WARNING: If you've just upgraded your database from a previous major
127+
version of Fedora or RHEL, please run reindexdb against your databases.
128+
Core library collation data may have changed and this will invalidate
129+
database indexes. For example, in Fedora 28 and RHEL 8 there have been
130+
extensive changes in glibc collations to support ISO 14651:2016 (Unicode
131+
9.0.0 data) and your indexes may be affected: https://sourceware.org/ml/libc-announce/2018/msg00002.html"
124132

125133
print_version()
126134
{
@@ -343,6 +351,8 @@ upgrade()
343351
warn $"The configuration files were replaced by default configuration."
344352
warn $"The previous configuration and data are stored in folder"
345353
warn $pgdataold.
354+
# Warn about possible glibc collation changes on success BZ#1668301
355+
warn "$GLIBC_COLLATION_WARN_STRING"
346356
else
347357
# Clean up after failure.
348358
$failure_cleanup && rm -rf "$pgdata"

0 commit comments

Comments
 (0)