Re: pgpool not load balancing via foreign table - Mailing list pgsql-admin

From David G. Johnston
Subject Re: pgpool not load balancing via foreign table
Date
Msg-id CAKFQuwbusM9DHaxOEZvFRLQYsE=06JeGoXzzHaW=E38BPQcZyQ@mail.gmail.com
Whole thread Raw
In response to pgpool not load balancing via foreign table  (Sbob <sbob@quadratum-braccas.com>)
Responses Re: pgpool not load balancing via foreign table
List pgsql-admin
On Friday, June 21, 2024, Sbob <sbob@quadratum-braccas.com> wrote:

however no matter how many selects I run via the foreign tables a "show pool_nodes" on the pgpool server shows  a select_cnt of 0 for all 3 nodes.

If I connect to the pgpool server/cluster and run a number of select statements then a "show pool_nodes"  shows increasing values for all 3 backend nodes for select_cnt


It appears that a foreign table / FDW connection to a pgpool node does not trigger the collection of any load balancing stats


Skimming over the project and the extension (for the first time ever…) it seems pgpool only does stats in response to Execute messages while FDW is using the simple query protocol.  That pgpool doesn’t do stats for Query as well seems like an oversight.

David J.



pgsql-admin by date:

Previous
From: Sbob
Date:
Subject: pgpool not load balancing via foreign table
Next
From: "David G. Johnston"
Date:
Subject: Re: pgpool not load balancing via foreign table