pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kirk Wythers <kwythers@umn.edu>
To: pgsql-performance@postgresql.org
Subject: trouble with a join on OS X
Date: Fri, 2 Feb 2007 07:52:48 -0600
Message-ID: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu> (raw)

I am trying to do fairly simple joins on climate databases that  
should return ~ 7 million rows of data. However, I'm getting an error  
message on a OS X (10.4 tiger server) machine that seems to imply  
that I am running out of memory. The errors are:

psql(15811) malloc: *** vm_allocate(size=8421376) failed (error code=3)
psql(15811) malloc: *** error: can't allocate region
psql(15811) malloc: *** set a breakpoint in szone_error to debug

The query should return all data from all climate stations. In order  
to test the query I tried narrowing the SELECT statement to a return  
data for a single station. This query worked (ie did not cause the  
malloc errors) and returned the expected 200,000 or so rows. Since  
this worked I don't think there is a problem with the join syntax.

This a a dual G5 box with 6 gigs of ram running postgresql 8.1. I  
have not tired altering kernel resources (as described in http:// 
www.postgresql.org/docs/8.1/interactive/kernel-resources.html#SHARED- 
MEMORY-PARAMETERS), or compiling for 64 bit. I'm just not sure what  
to try next. Does anyone have any suggestions?

Best Regards,

Kirk




view thread (29+ messages)  latest in thread

Message-ID: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>
Permalink:  ../8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu/
Also on:    postgresql.org/message-id/8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu

 · 

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-performance@postgresql.org
  Cc: kwythers@umn.edu
  Subject: Re: trouble with a join on OS X
  In-Reply-To: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>
  References: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>

* 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