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

From Tom Lane
Subject Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query
Date
Msg-id 649001.1629987082@sss.pgh.pa.us
Whole thread Raw
In response to 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>)
Responses 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>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Is Backgroundworker.bgw_restart_time is defined in seconds?
Next
From: Chetan
Date:
Subject: Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query