pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jonathan.camile <jonathan.camile@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8629: Strange resultset when using CTE or a subselect
Date: Wed, 27 Nov 2013 01:26:19 -0800 (PST)
Message-ID: <1385544379332-5780519.post@n5.nabble.com> (raw)
In-Reply-To: <9529.1385486528@sss.pgh.pa.us>
References: <E1VktOG-0004bJ-16@wrigleys.postgresql.org>
	<1385408337668-5780199.post@n5.nabble.com>
	<1385459415878-5780294.post@n5.nabble.com>
	<CAGrpgQ8J_QRvXXkSK+AqYeRLg4m2goDNucXaJ05jy2iPpnE3zA@mail.gmail.com>
	<9529.1385486528@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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-tp5...
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



view thread (10+ messages)

Message-ID: <1385544379332-5780519.post@n5.nabble.com>
Permalink:  ../1385544379332-5780519.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1385544379332-5780519.post@n5.nabble.com

 · 

reply

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: jonathan.camile@gmail.com
  Subject: Re: BUG #8629: Strange resultset when using CTE or a subselect
  In-Reply-To: <1385544379332-5780519.post@n5.nabble.com>
  References: <E1VktOG-0004bJ-16@wrigleys.postgresql.org> <1385408337668-5780199.post@n5.nabble.com> <1385459415878-5780294.post@n5.nabble.com> <CAGrpgQ8J_QRvXXkSK+AqYeRLg4m2goDNucXaJ05jy2iPpnE3zA@mail.gmail.com> <9529.1385486528@sss.pgh.pa.us> <1385544379332-5780519.post@n5.nabble.com>

* 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