Re: Stable sort? - Mailing list pgsql-general

From Richard Huxton
Subject Re: Stable sort?
Date
Msg-id 45519A5F.9080407@archonet.com
Whole thread Raw
In response to Stable sort?  ("redhog" <redhog@redhog.org>)
Responses Re: Stable sort?
List pgsql-general
redhog wrote:
> Is sorting in PostgreSQL stable over subqueries, that is, is
>
> select * from (select * from A order by x) as B order by y;
>
> equivalent with
>
> select * from A order by y, x;

I don't see how it could be:
   SELECT * FROM (SELECT * FROM a ORDER BY x DESC) AS B ORDER BY x ASC;

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: FOR ... IN
Next
From: Martijn van Oosterhout
Date:
Subject: Re: converting Informix outer to Postgres