[pgpool-committers: 9357] pgpool: Refactor pool_where_to_send.
Tatsuo Ishii
ishii at sraoss.co.jp
Mon May 8 10:08:45 JST 2023
Refactor pool_where_to_send.
pool_where_to_send() is a module in charge of judging where to a query
in terms of load balancing. It had been already big and I felt
difficulty to maintain it. Therefore I extracted two relatively large
code path, namely for streaming replication mode and native
replication mode (plus snapshot isolation mode) into
where_to_send_main_replica() and where_to_send_native_replication()
respectively.
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2023-May/004333.html
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=15c6250d68cef27de9ca291484954c8a0ebbe12e
Modified Files
--------------
src/context/pool_query_context.c | 662 ++++++++++++++++++++-------------------
1 file changed, 346 insertions(+), 316 deletions(-)
More information about the pgpool-committers
mailing list