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

From Josh Berkus
Subject Re: DELETE syntax on JOINS
Date
Msg-id 4A933EE8.6070708@agliodbs.com
Whole thread Raw
In response to Re: DELETE syntax on JOINS  (Bruce Momjian <bruce@momjian.us>)
Responses Re: DELETE syntax on JOINS  (Bruce Momjian <bruce@momjian.us>)
Re: DELETE syntax on JOINS  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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.

Personally, I'd be happy just to stop with the SQL extension we have.  I
think extending USING any further is going to cause more problems than
it solves.

-- 
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Bug in date arithmetic
Next
From: Jeff Janes
Date:
Subject: Re: Bug in visibility hint bit