[pgpool-committers: 5445] pgpool: Avoid error or notice message analysis if it's not necessary.

Tatsuo Ishii ishii at sraoss.co.jp
Sat Feb 9 21:10:36 JST 2019


Avoid error or notice message analysis if it's not necessary.

After sending query to backend, Pgpool-II always calls
pool_extract_error_message() via per_node_error_log(). In the function
memory allocation is performed even if error or notice message is
returned from backend. To avoid the waste of CPU cycle, check message
kind and avoid calling pool_extract_error_message() if it's not error
or notice message.

Discussion: [pgpool-hackers: 3230] https://www.pgpool.net/pipermail/pgpool-hackers/2019-February/003230.html

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=eb6c5b179adf6804199e3c2aaac5cf0cc698bce8

Modified Files
--------------
src/protocol/pool_proto_modules.c | 9 +++++++++
1 file changed, 9 insertions(+)



More information about the pgpool-committers mailing list