Replace use of strerror() with %s by %m in pg_waldump
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_waldump/pg_waldump.c | modified | +6 −9 |
Discussion
- Increase footprint of %m and reduce strerror() 7 messages · 2019-11-29 → 2019-12-24