]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_upgrade: Fix thinko in database info acquisition routine
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 22 Aug 2022 11:26:52 +0000 (13:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 22 Aug 2022 12:30:41 +0000 (14:30 +0200)
commit3725b7f3c93eac3148fe36cffbb7db47d4a9fae0
tree75eeb7a03f34855b6c7793ecdbe27a2fbe52e14c
parent254d79f0b23dfe107594c90ee8375165422db2c4
pg_upgrade: Fix thinko in database info acquisition routine

When checking whether the major version supports per-database locale
providers, it was always looking at the version of the old cluster
instead of the cluster that was passed in.  This would lead to
failures to detect locale provider mismatches.

Reported-by: Marina Polyakova <m.polyakova@postgrespro.ru>
Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f385ba25e7f8be427b8c582e5cca7d79%40postgrespro.ru#515a31c5429d6d37ad1d5c9d66962a1e
src/bin/pg_upgrade/info.c