From: | Jeremy Harris <jgh(at)wizmail(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Getting sorted data from foreign server |
Date: | 2015-10-08 19:04:07 |
Message-ID: | 5616BE27.3000103@wizmail.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 08/10/15 17:09, Robert Haas wrote:
> - You consider pushing down ORDER BY if any prefix of the query
> pathkeys satisfy is_foreign_expr(), but that doesn't seem right to me.
> If the user says SELECT * FROM remotetab ORDER BY a, unsafe(a),
> ordering the result set by a doesn't help us much. We've talked a few
> times about an incremental sort capability that would take a stream of
> tuples already ordered by one or more columns and sort each group by
> additional columns, but I don't think we have that currently. Without
> that capability, I don't think there's much benefit in sorting by a
> prefix of the pathkeys. I suspect that if we can't get them all, it's
> not worth doing.
That depends how often the additional columns affect the sorted
order, if the sort method takes advantage of sorted input.
--
Jeremy
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2015-10-08 20:04:44 | Re: Getting sorted data from foreign server |
Previous Message | Pavel Stehule | 2015-10-08 18:53:58 | Re: proposal: PL/Pythonu - function ereport |