Re: pg_upgrade - typo in verbose log - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: pg_upgrade - typo in verbose log
Date
Msg-id 321AA924-E038-46DB-8370-F9BB59FBB94A@yesql.se
Whole thread Raw
In response to pg_upgrade - typo in verbose log  (Peter Smith <smithpb2250@gmail.com>)
Responses Re: pg_upgrade - typo in verbose log
List pgsql-hackers
> On 11 May 2023, at 07:41, Peter Smith <smithpb2250@gmail.com> wrote:

> While reviewing another patch for the file info.c, I noticed some
> misplaced colon (':') in the verbose logs for print_rel_infos().

That spelling was introduced in c2e9b2f28818 which was the initial import of
pg_upgrade into contrib/ for the 9.0 release (at that time the function was
relarr_print() which via a few other names was renamed to print_rel_infos() in
0a5f1199319).

It's not entirely clear to me if the current spelling is a mistake or
intentional, but I do agree that your version is an improvement.

To be consistent with other log output in pg_upgrade we should probably also
wrap the relname and reltblspace in quotes as \"%s.%s\" and \"%s\" (and the
Database in print_db_infos()).

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Subscription statistics are not dropped at DROP SUBSCRIPTION in some cases
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] Allow Postgres to pick an unused port to listen