Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wgde7-0002cZ-On for pgsql-bugs@arkaria.postgresql.org; Sat, 03 May 2014 17:22:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wgde7-0007YO-5j for pgsql-bugs@arkaria.postgresql.org; Sat, 03 May 2014 17:22:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wgde6-0007YH-4g for pgsql-bugs@postgresql.org; Sat, 03 May 2014 17:22:42 +0000 Received: from mail-la0-f45.google.com ([209.85.215.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wgddv-0001Cb-43 for pgsql-bugs@postgresql.org; Sat, 03 May 2014 17:22:38 +0000 Received: by mail-la0-f45.google.com with SMTP id pv20so3731543lab.32 for ; Sat, 03 May 2014 10:22:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=f2drE9O4KuGwF8UCh40xHg9XIKvb90wW0M117OpxLl0=; b=cBNPs1Hdabc/J55eEdUpD74ECK+QpzH98J/2C8/1Pdns8Nq1Xogq4Zb4YtRklMUqtB 2X1kikvIkNyPRjM2qUsHy0fU01Z5IGKcUGkRpndEEfVclCP7L9DCPUvh1k6jlRAUAfbP hj5I3KseXJRCkR/0j/mRZKiq6DlVkC4b56TvXu3hE+myjUXEsMd9HmQ82NTVTZhAdEPw dF4CsBHwpAXkm98TNjOIS2cfH4LB6nBGB4INw9ah3zZ9Fve2WcQhBqkReyc/rm3Y+rQp 4QfGYZRH5S/t1FCQQyx25zHVTj2lTB1ekBfJzPuGtbZx2tqybdjy54N+O/LjMDNHmAtm z9wA== X-Gm-Message-State: ALoCoQkU7z18H64MfOrKdn3nOyKINbVRo1jTCbrRviNDlt++io+v28LTszTHFTKfsdCfZ9yo8wdw X-Received: by 10.152.234.229 with SMTP id uh5mr1240544lac.56.1399137749654; Sat, 03 May 2014 10:22:29 -0700 (PDT) Received: from dalli.local (c-6ba7e355.026-50-73746f15.cust.bredbandsbolaget.se. [85.227.167.107]) by mx.google.com with ESMTPSA id a7sm3088650lbc.9.2014.05.03.10.22.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 10:22:29 -0700 (PDT) Message-ID: <536525D4.2080809@joh.to> Date: Sat, 03 May 2014 19:22:28 +0200 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: vetri_2020@yahoo.com, pgsql-bugs@postgresql.org Subject: Re: BUG #10207: Simple select query returns duplicate row - Critical issue References: <20140503110401.1394.82717@wrigleys.postgresql.org> In-Reply-To: <20140503110401.1394.82717@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. > 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs