Re: DELETE syntax on JOINS

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: DELETE syntax on JOINS
Дата
Msg-id 4A933EE8.6070708@agliodbs.com
обсуждение исходный текст
Ответ на Re: DELETE syntax on JOINS  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: DELETE syntax on JOINS  (Bruce Momjian <bruce@momjian.us>)
Re: DELETE syntax on JOINS  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Bug in date arithmetic
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Bug in visibility hint bit