Re: DELETE syntax on JOINS - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: DELETE syntax on JOINS
Date
Msg-id 200908251302.n7PD22722022@momjian.us
Whole thread Raw
In response to Re: DELETE syntax on JOINS  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Josh Berkus wrote:
> All,
> 
> >> DELETE FROM target t USING t LEFT JOIN other_table ot ON ...
> >>
> >> but we have always considered that the target is *not* to be identified
> >> with any member of the FROM/USING clause, so it would be a serious
> >> compatibility break to change that now.
> 
> What I don't get is why this is such a usability issue.  Subqueries in
> DELETE FROM work perfectly well, and provide more flexibility than most
> users know what to do with.

OK, so you are saying that every OUTER join can be efficiently
reprsented as a subquery?  If that is true we don't need to add ANSI
join support to USING.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] plpythonu datatype conversion improvements
Next
From: Robert Haas
Date:
Subject: Re: DELETE syntax on JOINS