Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 624559FB1DC for ; Fri, 2 Feb 2007 10:41:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 80725-05 for ; Fri, 2 Feb 2007 10:41:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 9FCD09FA15F for ; Fri, 2 Feb 2007 10:41:19 -0400 (AST) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1HCzbH-00039A-Es; Fri, 02 Feb 2007 15:41:15 +0100 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1HCzbK-0005Lf-00; Fri, 02 Feb 2007 15:41:18 +0100 Date: Fri, 2 Feb 2007 15:41:18 +0100 From: "Steinar H. Gunderson" To: Kirk Wythers Cc: pgsql-performance@postgresql.org Subject: Re: trouble with a join on OS X Message-ID: <20070202144118.GA20529@uio.no> Mail-Followup-To: Kirk Wythers , pgsql-performance@postgresql.org References: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu> X-Operating-System: Linux 2.6.19 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/15 X-Sequence-Number: 23069 On Fri, Feb 02, 2007 at 07:52:48AM -0600, Kirk Wythers wrote: > 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 It sounds like you are out of memory. Have you tried reducing work_mem? Actually, what does your postgresql.conf look like with regard to memory settings? > 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? Compiling for 64 bit might very well help you, but it sounds odd to use several gigabytes of RAM for a sort. Could you post EXPLAIN ANALYZE for the query with only one row, as well as your table schema? /* Steinar */ -- Homepage: http://www.sesse.net/