[pgpool-committers: 7325] pgpool: Removing strerror() call from ereports.

Muhammad Usama m.usama at gmail.com
Tue Dec 15 17:40:39 JST 2020


Removing strerror() call from ereports.

Call to ereport() resets the errno value and using the "strerror(errno)"
emmits the wrong error message. The right way is to use
%m format specifier instead.


Branch
------
V4_0_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3435ea78dc56c05e2c3549e7f66bb1b4c8afde51
Author: Muhammad Usama <m.usama at highgo.ca>

Modified Files
--------------
src/auth/pool_passwd.c              |  2 +-
src/main/health_check.c             |  6 ++--
src/main/main.c                     | 51 +++++++++++++++-----------
src/main/pgpool_main.c              | 71 +++++++++++++++++++++----------------
src/pcp_con/pcp_child.c             | 14 ++++----
src/pcp_con/pcp_worker.c            | 10 +++---
src/protocol/child.c                | 12 +++----
src/protocol/pool_connection_pool.c | 24 ++++++++-----
src/protocol/pool_process_query.c   |  4 +--
src/query_cache/pool_memqcache.c    | 39 ++++++++++++--------
src/utils/pool_sema.c               | 16 +++++----
src/utils/pool_shmem.c              | 10 +++---
src/utils/pool_stream.c             | 47 ++++++++++++------------
src/watchdog/watchdog.c             | 33 ++++++++---------
src/watchdog/wd_commands.c          | 13 +++----
src/watchdog/wd_heartbeat.c         | 28 +++++++--------
src/watchdog/wd_if.c                | 15 ++++----
src/watchdog/wd_lifecheck.c         |  8 +++--
src/watchdog/wd_ping.c              | 11 +++---
19 files changed, 231 insertions(+), 183 deletions(-)



More information about the pgpool-committers mailing list