pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Newline after --progress report
Date: Fri, 14 Aug 2020 09:51:44 -0400
Message-ID: <572250.1597413104@sss.pgh.pa.us> (raw)
In-Reply-To: <82b539e5-ae33-34b0-1aee-22b3379fd3eb@iki.fi>
References: <82b539e5-ae33-34b0-1aee-22b3379fd3eb@iki.fi>

Heikki Linnakangas <hlinnaka@iki.fi> writes:
> While hacking on pg_rewind, this in pg_rewind's main() function caught 
> my eye:

Good catch.

> Attached is a patch to fix this, as well as a similar issue in 
> pg_checksums. pg_basebackup and pgbench also print progres reports like 
> this, but they seem correct to me.

I wonder whether it'd be better to push the responsibility for this
into progress_report(), by adding an additional parameter "bool last"
or the like.  Then the callers would not need such an unseemly amount
of knowledge about what progress_report() is doing.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <572250.1597413104@sss.pgh.pa.us>
Permalink:  ../572250.1597413104@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/572250.1597413104@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: Newline after --progress report
  In-Reply-To: <572250.1597413104@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox