Re: Optimization issue of branching UNION ALL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimization issue of branching UNION ALL
Дата
Msg-id 1961091.1671725136@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimization issue of branching UNION ALL  (Andrey Lepikhov <a.lepikhov@postgrespro.ru>)
Список pgsql-hackers
Andrey Lepikhov <a.lepikhov@postgrespro.ru> writes:
> Thanks, I have written the letter because of some doubts too. But only 
> one weak point I could imagine - if someday sql standard will be changed.

Yeah, if they ever decide that LATERAL should be allowed to reference a
previous sub-query of UNION ALL, that'd probably break this.  But it'd
break a lot of other code too, so I'm not going to worry about it.

I pushed the main fix to HEAD only, and the recursion checks to
all branches.

            regards, tom lane



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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: ARRNELEMS Out-of-bounds possible errors
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: Schema variables - new implementation for Postgres 15 (typo)