Re: BUG #10207: Simple select query returns duplicate row - Critical issue

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: vetri_2020(at)yahoo(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #10207: Simple select query returns duplicate row - Critical issue
Date: 2014-05-03 17:22:28
Message-ID: 536525D4.2080809@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 5/3/14, 1:04 PM, vetri_2020(at)yahoo(dot)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.

> And when I execute the below query, the issue occurs.

You didn't show the query you used here, but I'm assuming it had OFFSET
5 or something similar. And yes, that's still undefined behaviour, and
not a bug.

Regards,
Marko Tiikkaja

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-05-03 17:31:50 Re: BUG #10207: Simple select query returns duplicate row - Critical issue
Previous Message vetri_2020 2014-05-03 11:04:01 BUG #10207: Simple select query returns duplicate row - Critical issue