pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nikhil Benesch <nikhil.benesch@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: DELETE ... USING LATERAL
Date: Mon, 04 Oct 2021 15:21:18 -0400
Message-ID: <4004509.1633375278@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPWqQZSDUzGHNY--S+ULykJv2T2CbA5LavVT+a+NnjdeNB385A@mail.gmail.com>
References: <CAPWqQZQQWDX2A4zzEyJ_rqks0zCOaC2r2yjN4bAcEVhKb0V5AQ@mail.gmail.com>
	<3998065.1633369719@sss.pgh.pa.us>
	<CAPWqQZSDUzGHNY--S+ULykJv2T2CbA5LavVT+a+NnjdeNB385A@mail.gmail.com>

Nikhil Benesch <nikhil.benesch@gmail.com> writes:
> On Mon, Oct 4, 2021 at 1:48 PM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (7+ messages)  latest in thread

Message-ID: <4004509.1633375278@sss.pgh.pa.us>
Permalink:  ../4004509.1633375278@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4004509.1633375278@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nikhil.benesch@gmail.com
  Subject: Re: DELETE ... USING LATERAL
  In-Reply-To: <4004509.1633375278@sss.pgh.pa.us>
  References: <CAPWqQZQQWDX2A4zzEyJ_rqks0zCOaC2r2yjN4bAcEVhKb0V5AQ@mail.gmail.com> <3998065.1633369719@sss.pgh.pa.us> <CAPWqQZSDUzGHNY--S+ULykJv2T2CbA5LavVT+a+NnjdeNB385A@mail.gmail.com> <4004509.1633375278@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox