postgresql/src/bin/pg_upgrade
Bruce Momjian 2247a1ea5f pg_upgrade: make get_major_server_version() err msg consistent
This patch fixes the error message in get_major_server_version() to be
"could not parse version file", and uses the full file path name, rather
than just the data directory path.

Also, commit 4109bb5de4 added the cause of the failure to the  "could
not open" error message, and improved quoting.  This patch backpatches
the "could not open" cause to PG 12, where it was first widely used, and
backpatches the quoting fix in that patch to all supported releases.

Reported-by: Tom Lane

Discussion: https://postgr.es/m/87pne2w98h.fsf@wibble.ilmari.org

Author: Dagfinn Ilmari Mannsåker

Backpatch-through: 9.5
2020-03-19 15:20:55 -04:00
..
po Translation updates 2019-06-17 15:30:20 +02:00
.gitignore Ignore file generated during pg_upgrade testing 2018-04-30 12:39:29 -04:00
check.c Implement type regcollation 2020-03-18 21:21:00 +01:00
controldata.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dump.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
exec.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
file.c Move pg_upgrade's Windows link() implementation to AC_REPLACE_FUNCS 2020-03-04 08:22:54 +01:00
function.c Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
IMPLEMENTATION Fix wording in pg_upgrade docs 2017-05-05 12:42:21 +02:00
info.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00
option.c Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
parallel.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_upgrade.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_upgrade.h Move pg_upgrade's Windows link() implementation to AC_REPLACE_FUNCS 2020-03-04 08:22:54 +01:00
relfilenode.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
server.c pg_upgrade: make get_major_server_version() err msg consistent 2020-03-19 15:20:55 -04:00
tablespace.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
test.sh Update copyrights for 2020 2020-01-01 12:21:45 -05:00
TESTING Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
util.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
version.c Remove duplicated words in comments 2020-02-18 12:20:55 +09:00