Re: trouble with a join on OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux