Re: Insufficient memory for this operation.

From: Együd Csaba (Freemail) <csegyud(at)freemail(dot)hu>
To: 'Greg Stark' <gsstark(at)mit(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: Insufficient memory for this operation.
Date: 2004-12-14 18:10:52
Message-ID: 0I8Q00LFT55XFF@mail.vnet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Grag,
thank you, I realized the problem. I treated these values as per server
values not per connection.
It's now working with 20 or more concurrent connections well.

bye,
-- Csaba

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Greg Stark
Sent: Tuesday, December 14, 2004 6:25 PM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Insufficient memory for this operation.

Együd Csaba (Freemail) <csegyud(at)freemail(dot)hu> writes:

> shared_buffers = 20000 # min 16, at least max_connections*2, 8KB
each

You can lower this to 10,000 or even lower.

> max_connections = 100
> work_mem = 16384 # min 64, size in KB

That's 16M per connection with a maximum of 100 connections. So that's up to
1.6G that postgres has been told it can grab. It's unlikely it would grab it
all at once though unless lots of connections are running queries with big
sorts.

--
greg

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.805 / Virus Database: 547 - Release Date: 2004.12.03.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.805 / Virus Database: 547 - Release Date: 2004.12.03.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2004-12-14 18:15:40 Re: increasing max_connections on freebsd
Previous Message Kall, Bruce A. 2004-12-14 17:48:21 Copy row from table to table