Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query
Дата
Msg-id 649001.1629987082@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query  (Chetan <chetansuttraway@gmail.com>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Wouldn't it be good to push order by clause even when where clause is given
> in query?

Maybe, but you haven't demonstrated it.  In the example you show,
the query plan still requires a local sort, so pre-sorting the
individual inputs to that would just add cycles without accomplishing
anything.

In any case, this is not a bug.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is Backgroundworker.bgw_restart_time is defined in seconds?
Следующее
От: Chetan
Дата:
Сообщение: Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query