From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <marko@joh.to>
Cc: vetri_2020@yahoo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10207: Simple select query returns duplicate row - Critical issue
Date: Sat, 03 May 2014 13:31:50 -0400
Message-ID: <29145.1399138310@sss.pgh.pa.us> (raw)
In-Reply-To: <536525D4.2080809@joh.to>
References: <20140503110401.1394.82717@wrigleys.postgresql.org>
<536525D4.2080809@joh.to>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Marko Tiikkaja <marko@joh.to> writes:
> On 5/3/14, 1:04 PM, vetri_2020@yahoo.com wrote:
>> I'd encountered an issue in select query when using order by and limit.
>>
>> When I sort by a column which have same values for some data,then the row
>> that appears in first page also appears in next page.
> This is not a bug. The sort order of identical values is undefined
> unless disambiguated by adding more sort expressions.
Somebody else asked this identical question just a couple days ago:
http://www.postgresql.org/message-id/flat/20140428192320.2661.1832@wrigleys.postgresql.org
It's not random in the sense of having any indeterminate behavior,
but the output ordering of equal-keyed elements *can* change depending
on the LIMIT value.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, marko@joh.to, vetri_2020@yahoo.com
Subject: Re: BUG #10207: Simple select query returns duplicate row - Critical issue
In-Reply-To: <29145.1399138310@sss.pgh.pa.us>
References: <20140503110401.1394.82717@wrigleys.postgresql.org> <536525D4.2080809@joh.to> <29145.1399138310@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