pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gábriel Ákos <akos.gabriel@i-logic.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: trouble with a join on OS X
Date: Fri, 02 Feb 2007 10:46:53 -0500
Message-ID: <21989.1170431213@sss.pgh.pa.us> (raw)
In-Reply-To: <45C34FC6.2020704@i-logic.hu>
References: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>
	<45C34E80.7010805@archonet.com>
	<45C34FC6.2020704@i-logic.hu>

=?ISO-8859-1?Q?G=E1briel_=C1kos?= <akos.gabriel@i-logic.hu> writes:
> Richard Huxton wrote:
>> Kirk Wythers wrote:
>>> I am trying to do fairly simple joins on climate databases that should 
>>> return ~ 7 million rows of data.

> If you look at the message carefully, it looks like (for me) that the 
> client is running out of memory. Can't allocate that 8,4MB :)

Right, the join result doesn't fit in the client's memory limit.
This is not too surprising, as the out-of-the-box ulimit settings
on Tiger appear to be

$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) 6144
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 256
pipe size          (512 bytes, -p) 1
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 266
virtual memory        (kbytes, -v) unlimited
$

6 meg of memory isn't gonna hold 7 million rows ... so either raise
"ulimit -d" (quite a lot) or else use a cursor to fetch the result
in segments.

			regards, tom lane



view thread (29+ messages)  latest in thread

Message-ID: <21989.1170431213@sss.pgh.pa.us>
Permalink:  ../21989.1170431213@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21989.1170431213@sss.pgh.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, akos.gabriel@i-logic.hu
  Subject: Re: trouble with a join on OS X
  In-Reply-To: <21989.1170431213@sss.pgh.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