Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXTWe-0007L3-4l for pgsql-general@arkaria.postgresql.org; Mon, 04 Oct 2021 19:21:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXTWd-0004BW-3O for pgsql-general@arkaria.postgresql.org; Mon, 04 Oct 2021 19:21:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXTWc-0004BO-QP for pgsql-general@lists.postgresql.org; Mon, 04 Oct 2021 19:21:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXTWa-0002TW-Db for pgsql-general@lists.postgresql.org; Mon, 04 Oct 2021 19:21:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 194JLIAu4004510; Mon, 4 Oct 2021 15:21:18 -0400 From: Tom Lane To: Nikhil Benesch cc: "pgsql-generallists.postgresql.org" Subject: Re: DELETE ... USING LATERAL In-reply-to: References: <3998065.1633369719@sss.pgh.pa.us> Comments: In-reply-to Nikhil Benesch message dated "Mon, 04 Oct 2021 14:36:16 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4004508.1633375278.1@sss.pgh.pa.us> Date: Mon, 04 Oct 2021 15:21:18 -0400 Message-ID: <4004509.1633375278@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nikhil Benesch writes: > On Mon, Oct 4, 2021 at 1:48 PM Tom Lane wrote: >> My mental model of these things is that the target table is cross-joined >> to the additional tables as though by a comma in FROM [...] > Mine as well. > I just managed to dredge up some history here though. Turns out you > explicitly disabled this feature for 9.4 to make room for a future > feature to allow left-joining the target table [0]. Is support for > that feature still desired/planned? (If it's been permanently > abandoned for whatever reason, then maybe it's safe just to revert > 158b7fa?) Ah-hah, I wondered whether we hadn't thought about this already, but I'd not gotten around to researching it. Not sure what to tell you about the state of the idea that the target table could be re-specified in FROM/USING. I'm hesitant to close the door on it permanently, because people do periodically wish to be able to left-join the target to something else. But the fact that no one's done anything about it for years suggests that it's not that high on anyone's wish list. regards, tom lane