Re: Remove restrictions in recursive query

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Remove restrictions in recursive query
Дата
Msg-id CA+TgmoaD_hd-siBn4ROiXCZC=B0MasPDE2fisYD8SOOGWdE-Eg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Remove restrictions in recursive query  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Thu, Mar 27, 2025 at 12:37 PM Robert Haas <robertmhaas@gmail.com> wrote:
> It's not a problem if UNION ALL is used within the initial_query and
> it's not a problem if UNION ALL is used within the iterated_query. But
> you can't apply ORDER BY to the result of the UNION, because the UNION
> is kind of fake -- we're not running the UNION as a single query,
> we're running the two halves separately, the first once and the second
> as many times as needed.

Oops. The two UNION ALL references in the first part of this paragraph
should have said ORDER BY.

--
Robert Haas
EDB: http://www.enterprisedb.com



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