pgsql: pg_upgrade: further tweaking of make_outputdirs().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: further tweaking of make_outputdirs().
Date: 2022-06-13 18:28:12
Message-ID: E1o0onM-0048Vl-7o@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-06-13 20:05:02 pgsql: Stamp 14.4.
Previous Message Peter Eisentraut 2022-06-13 05:44:15 pgsql: Translation updates