From: Lex Berezhny <LBerezhny@DevIS.com>
To: Wilkinson Charlie E <Charlie.E.Wilkinson@irs.gov>
Cc: pgsql-sql@postgresql.org
Subject: Re: Working with very large datasets
Date: 11 Feb 2003 19:33:03 -0500
Message-ID: <1045009982.6380.2.camel@buddha> (raw)
In-Reply-To: <9DDDC002B736D711A7320004AC3699EB01C192C7@nct0010mb03.nc.no.irs.gov>
References: <9DDDC002B736D711A7320004AC3699EB01C192C7@nct0010mb03.nc.no.irs.gov>
On Tue, 2003-02-11 at 18:42, Wilkinson Charlie E wrote:
> Greetings,
> Can anyone enlighten me or point me at resources concerning use of
> pgsql with
> very large datasets?
[snip]
> SELECT userid,name,size,mtime FROM users INNER JOIN files ON
> users.fileid = files.fileid;
If you just want to see a sample result from that query in psql, then
you can use LIMIT:
SELECT userid,name,size,mtime FROM users INNER JOIN files ON
users.fileid = files.fileid LIMIT 100;
This should only return 100 rows.
I hope that helps.
I think there is also a way to specify offsets so that you can return
the rows in batches.
--
Lex Berezhny <LBerezhny@DevIS.com>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: LBerezhny@DevIS.com, Charlie.E.Wilkinson@irs.gov
Subject: Re: Working with very large datasets
In-Reply-To: <1045009982.6380.2.camel@buddha>
* 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