Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vBb0q-0017Im-6p for pgpool-general@arkaria.postgresql.org; Wed, 22 Oct 2025 15:44:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vBb0n-00HXSE-Pf for pgpool-general@arkaria.postgresql.org; Wed, 22 Oct 2025 15:44:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vBb0n-00HXS2-70 for pgpool-general@lists.postgresql.org; Wed, 22 Oct 2025 15:44:28 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vBb0k-003BQx-0o for pgpool-general@lists.postgresql.org; Wed, 22 Oct 2025 15:44:27 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id AA75514001DA; Wed, 22 Oct 2025 11:44:25 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 22 Oct 2025 11:44:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1761147865; x=1761234265; bh=qBaiEiKnvFmVLC6/y8GZXPawwGrI+1Xs i+jaQFIl1rA=; b=QP9APXTeFUzaXMuZQKzl7pl59KzU9Ss7A+GAfVL0/5KrL8cp EEg1VTnDWNJrc10q3uct5CnFnBvtJ9Jc6KHEaDqIGM0UK5QsHnfl9awUtBvfCDsm q6sV9/9PtiUEzcYuk9Dg/KyNpDBfSTwQ3aWy/aBZQ1wu+ZIBkpgSTj50q8DT+cmv zNMm42pdOeClSQM+fTDw/0zI4g4afPM4zlyW+T666+1kf7svvEKdTwTk4v2IzWE4 66vylYgz6J1md+2QkBO5RKwuQHHDvI+PFGmXGonYI3kmgeJUsMaH42gX7sxChgZc x/luT0v6FreMiO6Uc90EtMHSojzwFyujnglwRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1761147865; x=1761234265; bh=qBaiEiKnvFmVLC6/y8GZXPawwGrI+1Xsi+j aQFIl1rA=; b=Nbm3NWjkfOCZ/qUbgtGkzJAlv3JOnlibRGa0XldPEkeX52W/U3k VzPhvZCneMiVB/ctUyoiKVolksaj02kKdGO341QpuJNCRVwVfHeuo1v6R6KIyuTe q4WmOq8JebzdMmzKuphOPPexDNKFjwmMKDz+gIn9M2FxABNnL/9iJK49x6f186jm BSgRrQ4f5QDRip0D0T600f3JdNImHd7Od+Qsul2Lb/nwP8mOA2PpUQUyvZbEj8Bn TWFGxWfK5BeiV7YbNWi4FIau4QDq5cpRAI01fVLiVOUy8qjaTfxKyMmA+PUzYITO mRP0w9+nkeNNHwy8pPrjubEcAoBcjFpKbgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddugeefleejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtkeertddtvd ejnecuhfhrohhmpefusghosgcuoehssghosgesqhhurggurhgrthhumhdqsghrrggttggr shdrtghomheqnecuggftrfgrthhtvghrnhepfeekhefftdffleduudegkeevtdekvdejgf egheefteefudeiveekhfelfffhuefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrd gtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehpghhpohholhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hgpdhrtghpthhtohepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrdgtohhm X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Oct 2025 11:44:24 -0400 (EDT) Message-ID: Date: Wed, 22 Oct 2025 09:44:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pgpool-general@lists.postgresql.org Content-Language: en-US From: Sbob Subject: FDW/Foriegn Table pointing to pgpool never gets load balanced Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk All; I setup a Foreign Server pointing to a pgpool instance. Subsequently created Foreign Tables work as expected but they are never load balanced, it seems they always run on the first available node. My latest test used a pgpool config pointing to 2 standby's (no master) and set both backend nodes to DISALLOW failovers I have load balancing configured and I have statement_level_load_balance = on I set log_min_duration_statement to 0 on both backend nodes and ran several selects from the local Foreign table, I see this in the logfile from data node 0: 2025-10-21 08:52:53.876 MDT [58156] LOG:  duration: 0.032 ms statement: START TRANSACTION ISOLATION LEVEL REPEATABLE READ 2025-10-21 08:52:53.877 MDT [58156] LOG:  duration: 0.063 ms parse : DECLARE c1 CURSOR FOR         SELECT id FROM public.abc WHERE ((id < 15)) 2025-10-21 08:52:53.877 MDT [58156] LOG:  duration: 0.006 ms  bind : DECLARE c1 CURSOR FOR         SELECT id FROM public.abc WHERE ((id < 15)) 2025-10-21 08:52:53.877 MDT [58156] LOG:  duration: 0.043 ms execute : DECLARE c1 CURSOR FOR         SELECT id FROM public.abc WHERE ((id < 15)) 2025-10-21 08:52:53.878 MDT [58156] LOG:  duration: 0.043 ms statement: FETCH 100 FROM c1 2025-10-21 08:52:53.878 MDT [58156] LOG:  duration: 0.005 ms statement: CLOSE c1 2025-10-21 08:52:53.878 MDT [58156] LOG:  duration: 0.016 ms statement: COMMIT TRANSACTION And I see this in the logfile from data node 1: 2025-10-21 08:52:27.675 MDT [58138] LOG:  duration: 0.026 ms statement: START TRANSACTION ISOLATION LEVEL REPEATABLE READ 2025-10-21 08:52:27.676 MDT [58138] LOG:  duration: 0.020 ms statement: COMMIT TRANSACTION No matter how many selects I run from the Foreign Table I see the same entries in the data node postgres log files and it never load balances the queries from the Foreign Table Anyone have any Ideas how to get this to load balance? Thanks in advance