From: tjk@tksoft.com <tjk@tksoft.com>
To: raanders@altoplanos.net
Cc: oleg@sai.msu.su
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] trivial problem
Date: Fri, 29 Oct 1999 11:12:49 -0700 (PDT)
Message-ID: <199910291812.LAA24162@uno.tksoft.com> (raw)
In-Reply-To: <Pine.LNX.4.04.9910291001080.6068-100000@asgard.altoplanos.net>
If limit didn't mean "get first 50," there would be no time/effort
saved by specifying a limit.
I.e. when a limit is specified, the backend looks for matches until it
finds 50 records, and then stops.
Troy
>
> On Fri, 29 Oct 1999, Oleg Bartunov wrote:
>
> > select * from table order by column limit 50
> >
>
> It used to be and could still be in Oracle (sorry to pull them into this)
> that limit applied to the selection clause so the first 'n' tulples
> selected,not the top/bottom 'n', would be reported.
> Would this be a feature of the SQL standard or of Oracles
> implementation? And how does PostgreSQL handle limits?
>
> Rod
> --
> Roderick A. Anderson
> raanders@altoplanos.net Altoplanos Information Systems, Inc.
> Voice: 208.765.6149 212 S. 11th Street, Suite 5
> FAX: 208.664.5299 Coeur d'Alene, ID 83814
>
>
> ************
>
>
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-sql@postgresql.org
Cc: tjk@tksoft.com, raanders@altoplanos.net, oleg@sai.msu.su
Subject: Re: [SQL] trivial problem
In-Reply-To: <199910291812.LAA24162@uno.tksoft.com>
References: <Pine.LNX.4.04.9910291001080.6068-100000@asgard.altoplanos.net> <199910291812.LAA24162@uno.tksoft.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