Improve error reporting from validate_exec(). validate_exec() didn't guarantee to set errno to something appropriate after a failure, leading to callers not being able to print an on-point message. Improve that.
Noted by Kyotaro Horiguchi, though this isn't exactly his proposal. Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/920072339f304a7da0b5de966117420c96ad78cb Modified Files -------------- src/bin/pg_upgrade/exec.c | 11 ++--------- src/common/exec.c | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 11 deletions(-)
