Re: select count() out of memory

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: <tfinneid(at)student(dot)matnat(dot)uio(dot)no>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: select count() out of memory
Date: 2007-10-25 11:31:01
Message-ID: 87hckfl9ca.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<tfinneid(at)student(dot)matnat(dot)uio(dot)no> writes:

> max_connections = 1000

Do you actually have anywhere near this number of processes? What is your
setting for work_mem? Keep in mind every process could use as much as work_mem
and actually it's possible to use that much several times over.

Also, what is your maintenance_work_mem and do you have many vacuums or other
such commands running at the time?

1,000 processes is a large number of processes. You may be better off
re-architecting to run fewer processes simultaneously. But if that's not
possible you'll have to keep it in mind to tune other things properly.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roberts, Jon 2007-10-25 12:14:33 Re: subversion support?
Previous Message Gregory Stark 2007-10-25 11:20:40 Re: [PGSQL v8.2.5] Similar queries behave differently