Improve error reporting from validate_exec().
Tom Lane <tgl@sss.pgh.pa.us>
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/20220615.131403.1791191615590453058.horikyota.ntt@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_upgrade/exec.c | modified | +2 −9 |
| src/common/exec.c | modified | +14 −2 |
Discussion
- Remove trailing newlines from pg_upgrade's messages 11 messages · 2022-06-14 → 2022-07-12