From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
---|---|
To: | Charles Sheridan <cesheri(at)swbell(dot)net>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Do Layered Views/Relations Preserve Sort Order ? |
Date: | 2015-09-14 16:43:45 |
Message-ID: | 55F6F941.4020308@BlueTreble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 9/9/15 7:55 PM, Charles Sheridan wrote:
>> The better question is how expensive is it to sort already sorted
>> data. If its cheap, and it likely is, then placing explicit sorting
>> where you care is the best solution regardless of your level of
>> confidence that lower level sorting is being maintained.
...
> David, yes, I agree that sorting at the end is the highest-confidence
> approach. I don't (yet) have a large stack of views with an assumption
> of a guaranteed underlying sort order, I'm just trying to get a better
> sense of what Postgres behavior I can reasonably expect here.
BTW, I believe there is some code in the planner to remove useless
ORDER-BYs.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
From | Date | Subject | |
---|---|---|---|
Next Message | Shulgin, Oleksandr | 2015-09-14 16:46:51 | Re: On-demand running query plans using auto_explain and signals |
Previous Message | Jim Nasby | 2015-09-14 16:37:01 | Re: [PROPOSAL] Covering + unique indexes. |