pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: terry@terrym.com
Cc: hackers@postgreSQL.org
Subject: Re: [HACKERS] What about LIMIT in SELECT ?
Date: Tue, 13 Oct 1998 17:05:43 -0400 (EDT)
Message-ID: <199810132105.RAA10598@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.3.95.981013141634.9255C-100000@terry1.acun.com>

> Hi, my 2 cents...
> 
> I agree completely, LIMIT would be VERY usefull in web based apps, which
> is all I run.  It does not matter to me if it is not part of a formal
> standard.  The idea is so common that it is a defacto standard.
> 
> I would not expect it for this release, but could it get put on the TODO
> list for next time?  I am even willing to work at an apprentise level on
> this with a more expeireanced person that knows this stuff.

I assume everyone has read the FAQ item:

	How do I <I>select</I> only the first few rows of a query?


	See the fetch manual page.<P>
	
	This only prevents all row results from being transfered to the client.
	The entire query must be evaluated, even if you only want just the first
	few rows. Consider a query that has an order by.  There is no way
	to return any rows until the entire query is evaluated and sorted.


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026




view thread (60+ messages)  latest in thread

Message-ID: <199810132105.RAA10598@candle.pha.pa.us>
Permalink:  ../199810132105.RAA10598@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199810132105.RAA10598@candle.pha.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-hackers@postgresql.org
  Cc: maillist@candle.pha.pa.us, terry@terrym.com, hackers@postgreSQL.org
  Subject: Re: [HACKERS] What about LIMIT in SELECT ?
  In-Reply-To: <199810132105.RAA10598@candle.pha.pa.us>
  References: <Pine.LNX.3.95.981013141634.9255C-100000@terry1.acun.com> <199810132105.RAA10598@candle.pha.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