Re: Controlling Reuslts with Limit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Najm Hashmi <najm(at)mondo-live(dot)com>
Cc: pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Controlling Reuslts with Limit
Date: 2001-02-23 21:39:27
Message-ID: 654.982964367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Najm Hashmi <najm(at)mondo-live(dot)com> writes:
> I just want to know what exatly --"LIMIT without ORDER BY returns random rows
> from the query" --means

It means the results aren't guaranteed. It doesn't mean that the exact
same query run under the exact same conditions by the exact same version
of Postgres won't return the same results every time. Especially not
one that's too simple to have more than one possible execution plan...

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-02-23 21:46:50 Re: Controlling Reuslts with Limit
Previous Message Jie Liang 2001-02-23 21:27:18 Re: Controlling Reuslts with Limit