[pgpool-committers: 5446] pgpool: Enhance performance while sending message to frontend.

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


Enhance performance while sending message to frontend.

SimpleForwardToFrontend(), which is responsible for sending message to
frontend, does write buffering only if it is either 'D' (DataRow) or
'd' (CopyData). Other message types were immediately written to
socket. But actually this was not necessary. So if the messages are
not critical ("Command Complete", "Ready For query", + * "Error
response" and "Notice message" messages), just write to buffer.  With
this 10-17% performance enhance was observed.

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

Branch
------
master

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

Modified Files
--------------
src/protocol/pool_process_query.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)



More information about the pgpool-committers mailing list