LIMIT and 6.5 - Mailing list pgsql-interfaces

From Matthew Hagerty
Subject LIMIT and 6.5
Date
Msg-id 4.1.19990604224611.00a838e0@mail.venux.net
Whole thread Raw
List pgsql-interfaces
Greetings,

I was wondering if the new LIMIT command in 6.5 is implemented in such a
way that it does in fact improve query time and memory on large result
sets?  I was reading a patch that gives the LIMIT command capability to
6.4.2, but there was a note that indicated that the query processor still
had to evaluate the whole query and only *returns* the indicated number of
tuples/rows.  Is that the case with 6.5 also?  If so, what is the use of
having such a command if it does not improve performance or save memory?
It is already possible (and easy) to just grab x number of tuples/rows from
a query since most of the time they are fetched in a loop anyway.

Thanks,
Matthew Hagerty



pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: [INTERFACES] pgsql_perl5 fails to compile
Next
From: "George Henry C. Daswani"
Date:
Subject: