Re: DELETE with LIMIT (or my first hack)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DELETE with LIMIT (or my first hack)
Дата
Msg-id 4247.1291151895@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DELETE with LIMIT (or my first hack)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> You seem to be imagining the MergeAppend node on top, but I had it in
> the other order in my mind.  The ModifyTable node would be the
> outermost plan node, pulling from the Limit, which would deliver the
> first n table rows from the MergeAppend, which would be reponsible for
> getting it from the various child tables.

That's just a variation of the Sort/Limit/ModifyTable approach.  It
doesn't fix the problem of how ModifyTable knows which table each row
came from, and it doesn't fix the problem of the rows not being all the
same rowtype.  (In fact it makes the latter worse, since now MergeAppend
has to be included in whatever kluge you invent to work around it.)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: DELETE with LIMIT (or my first hack)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: DELETE with LIMIT (or my first hack)