pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace use of strerror() with %s by %m in pg_waldump
Date: Tue, 24 Dec 2019 03:22:04 +0000
Message-ID: <E1ijalo-0007MV-FE@gemulon.postgresql.org> (raw)

Replace use of strerror() with %s by %m in pg_waldump

Since d6c55de1, src/port/snprintf.c is able to use %m instead of
strerror().  A couple of utilities in src/bin/ have already done the
switch, and do it now for pg_waldump as this reduces the workload for
translators.

Note that more could be done, particularly with pgbench.  Thanks to
Kyotaro Horiguchi for the discussion.

Discussion: https://postgr.es/m/20191129065115.GM2505@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cce64a51cabc1e59d202d95bb0b92ed22bac73cf

Modified Files
--------------
src/bin/pg_waldump/pg_waldump.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)



Message-ID: <E1ijalo-0007MV-FE@gemulon.postgresql.org>
Permalink:  ../E1ijalo-0007MV-FE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ijalo-0007MV-FE@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Replace use of strerror() with %s by %m in pg_waldump
  In-Reply-To: <E1ijalo-0007MV-FE@gemulon.postgresql.org>
  References: <E1ijalo-0007MV-FE@gemulon.postgresql.org>

* 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