Re: Sorting, when values are equal....

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Net Virtual Mailing Lists" <mailinglists(at)net-virtual(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sorting, when values are equal....
Date: 2004-10-25 15:31:49
Message-ID: 200410251731.49701.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Net Virtual Mailing Lists wrote:
> If I do something like:
>
> SELECT * FROM sometable ORDER BY somerow DESC LIMIT 1 OFFSET 2;
>
> .. and there are multiple rows in sometable where somerow is
> identical, am I assured that the values will always come back in the
> same order? .....

No.

> Or do I need to ensure that a second sort (such as
> the oid?) is used?

Yes.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message nd02tsk 2004-10-25 15:53:09 PgSQL MVCC vs MySQL InnoDB
Previous Message Stephan Szabo 2004-10-25 14:53:55 Re: Bug or stupidity