From: Tom Lane <tgl@sss.pgh.pa.us>
To: chetansuttraway@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query
Date: Thu, 26 Aug 2021 10:11:22 -0400
Message-ID: <649001.1629987082@sss.pgh.pa.us> (raw)
In-Reply-To: <17162-d69d57bc36cb53f5@postgresql.org>
References: <17162-d69d57bc36cb53f5@postgresql.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, chetansuttraway@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query
In-Reply-To: <649001.1629987082@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox