pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Denis Kolesnik <lirex.software@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Subject: Re: bug #7499 additional comments
Date: Wed, 22 Aug 2012 21:26:27 -0400
Message-ID: <27428.1345685187@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHYNDb8h-cSxfAddc-Na0bj+cnUGGaQVo=8wBEfwoRb7wCcLdw@mail.gmail.com>
References: <CAHYNDb8h-cSxfAddc-Na0bj+cnUGGaQVo=8wBEfwoRb7wCcLdw@mail.gmail.com>

Denis Kolesnik <lirex.software@gmail.com> writes:
> You would sugguest, that one should read documentation.

Indeed.

> in the (where with ... replaced a directory in which the PostgreSQL installed)
> ...PostgreSQL\9.1\doc\postgresql\html\queries-limit.html

> "...When using LIMIT, it is important to use an ORDER BY clause that
> constrains the result rows into a unique order. .."

> here asked to use "ORDER BY" which is done in every query above.

What you are stubbornly refusing to grasp is that your ORDER BY is not
sufficient to ensure a unique order.  The above-quoted sentence does not
promise that any old ORDER BY will do.  If you simply ORDER BY a
non-unique column, the query's output ordering is only constrained up to
the point that rows with the same ordering value will be adjacent.
If you want more than that, you need to add additional columns to the
ORDER BY to resolve cases where that column is equal.

As long as you haven't done that, you are wrong, and you are wasting
both your time and ours arguing about it.  You've wasted quite enough
of my time already; don't expect to see any further responses on this
subject.

			regards, tom lane




view thread (4+ messages)  latest in thread

Message-ID: <27428.1345685187@sss.pgh.pa.us>
Permalink:  ../27428.1345685187@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27428.1345685187@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, lirex.software@gmail.com, Kevin.Grittner@wicourts.gov
  Subject: Re: bug #7499 additional comments
  In-Reply-To: <27428.1345685187@sss.pgh.pa.us>
  References: <CAHYNDb8h-cSxfAddc-Na0bj+cnUGGaQVo=8wBEfwoRb7wCcLdw@mail.gmail.com> <27428.1345685187@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