Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Limiting number of rows returned at a time in select query


  • From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: Re: Limiting number of rows returned at a time in select query
  • Date: 24 May 2007 17:05:20 -0700
  • Message-id: <1180051520(dot)672554(dot)25710(at)m36g2000hse(dot)googlegroups(dot)com>

Jon Clements ha escrito:
> Hi All.
>
> Is there a way inside a query (or connection) to limit the amount of
> records returned each chunk by the server? At the moment, I have 22
> million records trying to be returned in one-go as the result set. I
> have a .NET driver that has a FetchSize option which allows the above
> (say returning 10k rows at a time without holding them all in memory);
> I'm not sure though if that's a property of the driver / server, as
> none of the other interfaces I have seem to include it. It just makes
> sense it might be server-side; although, if it's not I'm quite happy
> to be corrected.
>
> Any pointers are appreciated.
>
> Cheers,
>
> Jon.

See:

http://www.postgresql.org/docs/8.2/static/queries-limit.html




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group