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 1vBFH5-00DeWR-4n for pgsql-admin@arkaria.postgresql.org; Tue, 21 Oct 2025 16:31:50 +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 1vBFH3-00AaTR-5Z for pgsql-admin@arkaria.postgresql.org; Tue, 21 Oct 2025 16:31:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vBFH2-00AaT4-6H for pgsql-admin@lists.postgresql.org; Tue, 21 Oct 2025 16:31:47 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vBFGy-003Sey-14 for pgsql-admin@lists.postgresql.org; Tue, 21 Oct 2025 16:31:46 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 2DE7CEC0078; Tue, 21 Oct 2025 12:31:42 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 21 Oct 2025 12:31:42 -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=1761064302; x=1761150702; bh=qBaiEiKnvFmVLC6/y8GZXPawwGrI+1Xs i+jaQFIl1rA=; b=YUr13CVKLE82nIQ6bxnqroNTOsts7RWZ9ScbbeJCYGpLtlxk hKLFioEp3DOXHJ0KNXiyyFU0B5cJE945FYNddc1Jsb+6rQb/gMN2+wcp1QZaLuR3 8phlueDsvePwnAQzIO3PqpfDF2Vyv+dxUeia6lxhNSipHVXsdQZuBFl8iq4ebz93 534klWcygwZeTKYrnRwC8rtMBuWIFQIb/bdOWpiCYxKUjHOLo4JNv+LTixGC/yGj /BeQKrWlM3+pH4Kggowx2ZZNm5p3Fo3AAZzvoUkUzeSGF3eSV6abNhtVw7KIrf5h apcpIUbm0xjzBO5B3liXqeAEGvYFs0wTE6wTRA== 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= 1761064302; x=1761150702; bh=qBaiEiKnvFmVLC6/y8GZXPawwGrI+1Xsi+j aQFIl1rA=; b=uFimJ8hR/m7Nis+7hdGsraDDXd8osJSCuhEXmVbQgK01BG/WMLq 4gsjPw1V+dSMKcd2t5tRw/MK/6wYxnO86ix3ulazmenadwmiMJJvo/HqcgG+qXMS TnQ0vjWdqBW0SQ4K4LVJ9se0eBFJHNNqkOUXelZ/XKBAEbUob9CsO1TYTUI9f99J rD9lMcg2dqT2eLiL7I93Y5nD5SGmvI3tlsu3zenjl3CocI0X6YTsxsFfC2BVL/i2 Ff+uooYbnpuC/9PYK6bAS17vPQ4pOJk/CjcB0rUangsSQWtsSoMFgM5aHnkat4If PPicPbK7Op3CKXr2rmdLvhCeYShoeo+Wthg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddugeduudekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtkeertddtvd ejnecuhfhrohhmpefusghosgcuoehssghosgesqhhurggurhgrthhumhdqsghrrggttggr shdrtghomheqnecuggftrfgrthhtvghrnhepfeekhefftdffleduudegkeevtdekvdejgf egheefteefudeiveekhfelfffhuefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrd gtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehpghhsqhhlqdgrughmihhnsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprh gtphhtthhopehssghosgesqhhurggurhgrthhumhdqsghrrggttggrshdrtghomh X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Oct 2025 12:31:41 -0400 (EDT) Message-ID: Date: Tue, 21 Oct 2025 10:31:40 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pgsql-admin@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