[pgpool-committers: 2122] pgpool: First checkin for fixing [pgpool-hackers: 592]. pool_error and

Muhammad Usama m.usama at gmail.com
Tue Aug 12 23:14:06 JST 2014


First checkin for fixing [pgpool-hackers: 592]. pool_error and elog
This commit modernise the debug and log reporting mechanism and replace
all the function calls of pool_log() and pool_debug() with elog API's ereport().
As part of the effort log and debug message strings are also enhanced
to make the report more consistent and informative.
Next step on resolving this issue ([pgpool-hackers: 592]) is to remove pool_error().
This is little more trickier because of long jump in elog(ERROR,..) which alters the code flow.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7e6b93a2974429993945ee0579c6cafc007ea5ee

Modified Files
--------------
src/auth/pool_auth.c                          |   91 ++++---
src/auth/pool_hba.c                           |   63 +++--
src/config/pool_config.c                      |  109 ++++++---
src/config/pool_config.l                      |  109 ++++++---
src/context/pool_query_context.c              |    4 +-
src/context/pool_session_context.c            |   90 ++++---
src/include/pool.h                            |    6 -
src/main/pgpool_main.c                        |   61 +++--
src/parallel_query/pool_rewrite_outfuncs.c    |  218 +++++++++++------
src/parallel_query/pool_rewrite_query.c       |   72 ++++--
src/pcp_con/pcp_child.c                       |  144 +++++++----
src/pcp_con/recovery.c                        |   99 +++++---
src/protocol/child.c                          |  128 ++++++----
src/protocol/pool_connection_pool.c           |  103 +++++---
src/protocol/pool_process_query.c             |  262 ++++++++++++--------
src/protocol/pool_proto2.c                    |   65 +++--
src/protocol/pool_proto_modules.c             |  141 +++++++----
src/query_cache/pool_memqcache.c              |  315 +++++++++++++++++--------
src/rewrite/pool_lobj.c                       |   29 ++-
src/rewrite/pool_timestamp.c                  |   10 +-
src/streaming_replication/pool_worker_child.c |   13 +-
src/test/parser/pool.h                        |    2 -
src/test/timestamp/main.c                     |    2 -
src/utils/pool_error.c                        |  107 ---------
src/utils/pool_params.c                       |    5 +-
src/utils/pool_relcache.c                     |    9 +-
src/utils/pool_select_walker.c                |   74 ++++--
src/utils/pool_sema.c                         |    6 +-
src/utils/pool_shmem.c                        |   11 +-
src/utils/pool_ssl.c                          |   21 +-
src/utils/pool_stream.c                       |   55 +++--
src/watchdog/test/stab.c                      |  113 ---------
src/watchdog/watchdog.c                       |   73 ++++--
src/watchdog/wd_child.c                       |   66 ++++--
src/watchdog/wd_heartbeat.c                   |   85 +++++--
src/watchdog/wd_if.c                          |   40 +++-
src/watchdog/wd_init.c                        |    7 +-
src/watchdog/wd_interlock.c                   |   18 +-
src/watchdog/wd_lifecheck.c                   |  110 ++++++---
src/watchdog/wd_list.c                        |    5 +-
src/watchdog/wd_packet.c                      |   44 +++-
src/watchdog/wd_ping.c                        |   19 +-
42 files changed, 1904 insertions(+), 1100 deletions(-)



More information about the pgpool-committers mailing list