Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BBDD49FA4CD for ; Fri, 2 Feb 2007 10:35:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 81775-01 for ; Fri, 2 Feb 2007 10:35:12 -0400 (AST) X-Greylist: delayed 00:42:15.601195 by SQLgrey-1.7.4 Received: from mta-m2.tc.umn.edu (mta-m2.tc.umn.edu [160.94.23.21]) by postgresql.org (Postfix) with ESMTP id 1EF669FB289 for ; Fri, 2 Feb 2007 10:35:06 -0400 (AST) Received: from [10.0.1.4] (63-228-61-203.mpls.qwest.net [63.228.61.203]) by mta-m2.tc.umn.edu (UMN smtpd) with ESMTP for ; Fri, 2 Feb 2007 07:52:50 -0600 (CST) X-Umn-Remote-Mta: [N] 63-228-61-203.mpls.qwest.net [63.228.61.203] #+TS+AU+HN Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: pgsql-performance@postgresql.org From: Kirk Wythers Subject: trouble with a join on OS X Date: Fri, 2 Feb 2007 07:52:48 -0600 X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/14 X-Sequence-Number: 23068 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