pgsql: pg_upgrade: further tweaking of make_outputdirs(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: pg_upgrade: further tweaking of make_outputdirs().
Date
Msg-id E1o0onM-0048Vl-7o@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_upgrade: further tweaking of make_outputdirs().

Use the same error message for all cases of pathname overrun,
since users aren't going to much care which one was too long.
Add missing newline to said error (as pg_upgrade's version
of pg_fatal requires that).
Add pathname overrun checks for the individual log files,
not just the directories.
Remove initial newline in log files; the new scheme here
guarantees that we'll never be appending to an old file.

Kyotaro Horiguchi and Tom Lane

Discussion: https://postgr.es/m/20220613.120551.729848632120189555.horikyota.ntt@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4e54d231aecb68cf64daf56ab7851c699719762e

Modified Files
--------------
src/bin/pg_upgrade/pg_upgrade.c | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates
Next
From: Tom Lane
Date:
Subject: pgsql: Stamp 14.4.