Re: [GENERAL] out of memory error on 3 table join

2006-12-12 Thread Martijn van Oosterhout
On Mon, Dec 11, 2006 at 05:50:53PM -0600, Kirk Wythers wrote: > met_data=# SELECT count(*) FROM climate, sites, solar WHERE > climate.id = sites.id AND solar.id = sites.id AND climate.year = 1999; > -- > 33061700 > (1 row) > psql(394) malloc: *** vm_allocate(size=396742656) failed (err

Re: [GENERAL] out of memory error on 3 table join

2006-12-11 Thread Jeff Davis
On Mon, 2006-12-11 at 17:50 -0600, Kirk Wythers wrote: > SELECT count (*) returns 33,061,700 > > met_data=# SELECT count(*) FROM climate, sites, solar WHERE > climate.id = sites.id AND solar.id = sites.id AND climate.year = 1999; > -- > 33061700 > (1 row) > > However attempting the join

Re: [GENERAL] out of memory error on 3 table join

2006-12-11 Thread Kirk Wythers
On Dec 11, 2006, at 1:43 PM, Tom Lane wrote: Kirk Wythers <[EMAIL PROTECTED]> writes: I have an database (pg 8.1.0 on OS X) where a three table inner-join gives the following errors: psql(606) malloc: *** vm_allocate(size=8421376) failed (error code=3) psql(606) malloc: *** error: can't all

Re: [GENERAL] out of memory error on 3 table join

2006-12-11 Thread Tom Lane
Kirk Wythers <[EMAIL PROTECTED]> writes: > I have an database (pg 8.1.0 on OS X) where a three table inner-join > gives the following errors: > psql(606) malloc: *** vm_allocate(size=8421376) failed (error code=3) > psql(606) malloc: *** error: can't allocate region > psql(606) malloc: *** set a

[GENERAL] out of memory error on 3 table join

2006-12-11 Thread Kirk Wythers
I have an database (pg 8.1.0 on OS X) where a three table inner-join gives the following errors: psql(606) malloc: *** vm_allocate(size=8421376) failed (error code=3) psql(606) malloc: *** error: can't allocate region psql(606) malloc: *** set a breakpoint in szone_error to debug out of memory