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 1szI3H-005IBh-0a for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2024 15:59:39 +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 1szI3F-006qPC-Bk for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2024 15:59:37 +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 1szI3D-006qEG-Tp for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2024 15:59:37 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1szI38-000XT4-O7 for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2024 15:59:35 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6511D11400F6; Fri, 11 Oct 2024 11:59:29 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Fri, 11 Oct 2024 11:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728662369; x=1728748769; bh=/ew4nVvsf42ovlSelr4SEtIfDfyFIhmNlUKvMhn1xfA=; b= PrF+qf31TfvRkInXlbzhRfUUcJBhTGf5tWDcsrimFcGzYGeokapieBUCb6vycf3O 1g56APxKkuxgd2+FVYbwUqwehJd62n4TigscoF2AZYKAKk5fI1cxM9j7hdeSavja 7ipxjsBb4w08bteQyHzuDcUMrPMsNdbjlycb7mz+Juglo2XkN22hyoaA0Sui5gHb CzWQnwXDohwQFRI+7HIhWHgaQ7HYpEIP32CsDLiJU6i6t+jJXnUXVsf0AHh/uGKE Vjn34CRdscQNhd8JyT+K9+P5jHo031mZFuDw/sQ95A33aEv+Qc0SFiNVMcnm4nPU z4wEnLzOCG92q5yrduqRaA== 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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728662369; x= 1728748769; bh=/ew4nVvsf42ovlSelr4SEtIfDfyFIhmNlUKvMhn1xfA=; b=i Ion3B1OF24NXeaVwGetka9N2/+adKp4h+CCGlZzOenw/1CFV0cC/z0WxMYyh5St5 j6wJR1ei93GHr1ssWnPDyGw6CYclGjYleYkISNRXQ53ClWBXIm1Hh41bzw4ySsI4 73ocUwc4+mVw/iBbi/v/qh9kh8itSxyEzk1hPCKjnfGfoJ8XCTH+Qt7BNwOrFybL 2R6Xn0aArxaRh4bz83GpedGfJg63mG6ZGXd8T06AIEBzU1fVQzBIGI49hrBLE9i/ E8rIkeaJxOvZe0Lq5frP+TsPSVsyTT07LS9HzOCm4e+M9wa/MV9M8j4QSrjSw7lw cahcsyplS6cYKsV2vsxGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefkedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeekfeehuddvjeeigfeifeej tdduudffledvfeelheeftdeiffeugfdvkeelgedtvdenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhgughdruggv vhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Oct 2024 11:59:28 -0400 (EDT) Message-ID: <302362d2-ce6b-4bec-9b7b-a845a982f4cb@aklaver.com> Date: Fri, 11 Oct 2024 08:59:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Foreign Data Wrapper behavior? To: Koen De Groote , PostgreSQL General References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/11/24 04:08, Koen De Groote wrote: > In the release notes for postgres 17 I'm reading: > > > The PostgreSQL foreign data wrapper (postgres_fdw), used to execute > queries on remote PostgreSQL instances, can now push EXISTS and IN > subqueries to the remote server for more efficient processing. > > I'm confused as to what this means. In older versions, are parts of > queries not sent to the foreign server? Or is this change meant to imply > the sending of only the subqueries, the result of which is then directly > used in pushing the entire query? > > Or am I still wrong as to what this means? > > I looked at the documentation and there doesn't seem to be any > indication of particular queries not being pushed to the foreign server, > so this wording that "can now push EXISTS and IN subqueries to the > remote server" is confusing. > > What am I missing? Read: https://www.postgresql.org/docs/current/postgres-fdw.html#POSTGRES-FDW-REMOTE-QUERY-OPTIMIZATION F.36.5. Remote Query Optimization As to the change in the Release Note see the --hackers discussion: https://www.postgresql.org/message-id/c9e2a757cf3ac2333714eaf83a9cc184%40postgrespro.ru > > Regards, > Koen De Groote -- Adrian Klaver adrian.klaver@aklaver.com