Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlbO6-0004fl-NW for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Nov 2013 09:26:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VlbO6-0005sz-4a for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Nov 2013 09:26:26 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlbO4-0005rE-Er for pgsql-bugs@postgresql.org; Wed, 27 Nov 2013 09:26:24 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VlbO1-0006ty-FO for pgsql-bugs@postgresql.org; Wed, 27 Nov 2013 09:26:23 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VlbNz-0003vq-Jn for pgsql-bugs@postgresql.org; Wed, 27 Nov 2013 01:26:19 -0800 Date: Wed, 27 Nov 2013 01:26:19 -0800 (PST) From: "jonathan.camile" To: pgsql-bugs@postgresql.org Message-ID: <1385544379332-5780519.post@n5.nabble.com> In-Reply-To: <9529.1385486528@sss.pgh.pa.us> References: <1385408337668-5780199.post@n5.nabble.com> <1385459415878-5780294.post@n5.nabble.com> <9529.1385486528@sss.pgh.pa.us> Subject: Re: BUG #8629: Strange resultset when using CTE or a subselect MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) 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 Hi Tom, Thanks for the answer. It's clearer now, I might avoid this behavior ordering by id at last. I still have the impression that is a bit buggy or misleading. Even with simple query such as : SELECT c.id FROM public.testme c WHERE c.status = ANY ('{5}') ORDER BY c.status DESC OFFSET 150 LIMIT 200 the last is always the same but not the penultimate. Even if the ordering is underdetermined it shouldn't change then LIMIT/OFFSET shouldn't return the same value for 2 non overlapping ranges. I find it difficult to understand how it works completely, but my knowledge are quite limited. Thanks anyway. :) -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8629-Strange-resultset-when-using-CTE-or-a-subselect-tp5780187p5780519.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs