Re: DELETE syntax on JOINS

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: DELETE syntax on JOINS
Дата
Msg-id
200908251302.n7PD22722022@momjian.us
Ответ на
Список
Дерево обсуждения
DELETE syntax on JOINS Jean-Michel Pouré <jm@poure.com>
Re: DELETE syntax on JOINS Bruce Momjian <bruce@momjian.us>
Re: DELETE syntax on JOINS Alvaro Herrera <alvherre@commandprompt.com>
Re: DELETE syntax on JOINS Bruce Momjian <bruce@momjian.us>
Re: DELETE syntax on JOINS Bill Moran <wmoran@potentialtech.com>
Re: DELETE syntax on JOINS Jean-Michel Pouré <jm@poure.com>
Re: DELETE syntax on JOINS Alvaro Herrera <alvherre@commandprompt.com>
Re: DELETE syntax on JOINS Tom Lane <tgl@sss.pgh.pa.us>
Re: DELETE syntax on JOINS Bruce Momjian <bruce@momjian.us>
Re: DELETE syntax on JOINS Josh Berkus <josh@agliodbs.com>
Re: DELETE syntax on JOINS Bruce Momjian <bruce@momjian.us>
Re: DELETE syntax on JOINS Robert Haas <robertmhaas@gmail.com>
Re: DELETE syntax on JOINS Tom Lane <tgl@sss.pgh.pa.us>
Re: DELETE syntax on JOINS Greg Stark <gsstark@mit.edu>
Re: DELETE syntax on JOINS Tom Lane <tgl@sss.pgh.pa.us>
Re: DELETE syntax on JOINS Andrew Dunstan <andrew@dunslane.net>
Re: DELETE syntax on JOINS Tom Lane <tgl@sss.pgh.pa.us>
Re: DELETE syntax on JOINS Robert Haas <robertmhaas@gmail.com>
Re: DELETE syntax on JOINS Tom Lane <tgl@sss.pgh.pa.us>
Re: DELETE syntax on JOINS Sam Mason <sam@samason.me.uk>
Re: DELETE syntax on JOINS Bruce Momjian <bruce@momjian.us>
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          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +

В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Robert Haas
Дата:
Сообщение: Re: DELETE syntax on JOINS
FAQ