Re: Maintain the pathkesy for subquery from outer side information

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Maintain the pathkesy for subquery from outer side information
Дата
Msg-id 1053515.1627136081@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Maintain the pathkesy for subquery from outer side information  (Andy Fan <zhihui.fan1213@gmail.com>)
Ответы Re: Maintain the pathkesy for subquery from outer side information
Список pgsql-hackers
Andy Fan <zhihui.fan1213@gmail.com> writes:
> When I am working on the UnqiueKey stuff, I find the following cases.
> SELECT * FROM (SELECT * FROM t offset 0) v ORDER BY a;
> // root->query_keys = A.  root->order_pathkeys = A
> // Current: subroot->query_pathkeys = NIL.
> // Expected:  subroot->xxxx_pathkeys = [A].

Why do you "expect" that?  I think pushing the outer ORDER BY past a
LIMIT is an unacceptable semantics change.

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: visibility map corruption
Следующее
От: Andy Fan
Дата:
Сообщение: Re: Maintain the pathkesy for subquery from outer side information