Replace use of strerror() with %s by %m in pg_waldump
authorMichael Paquier <michael@paquier.xyz>
Tue, 24 Dec 2019 03:14:08 +0000 (12:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 24 Dec 2019 03:14:08 +0000 (12:14 +0900)
commitcce64a51cabc1e59d202d95bb0b92ed22bac73cf
treec4d936c35802235c15c128abffd4ec91e6104396
parente69d644547785cc9f079650d29118a3688bc5039
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
src/bin/pg_waldump/pg_waldump.c