Re: Controlling memory of session

From: Richard Huxton <dev(at)archonet(dot)com>
To: James Im <im-james(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Controlling memory of session
Date: 2007-01-17 17:53:44
Message-ID: 45AE62A8.9020507@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

James Im wrote:
> Richard Huxton wrote:
> > Is there a particular problem you're trying to solve?
>
> yes I'm trying to know how many connections can open to the database
> without running out of memory. Ideally I would like to optimize stuff
> so that I can open the maximum number of connection/session.

What - just as many idle connections as you can? You're not interesting
in running queries with them?

> In total I can give 250Mb of RAM to Postgresql. It should not eat more
> memory. This is what Im' trying to do.

It hasn't got that sort of hard limit facility. The best you can do is
to limit the maximum number of connections and then restrict the various
memory settings per-backend and shared. That should let you keep it in
the range you want.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chad Wagner 2007-01-17 17:55:16 Re: Building web sites using a database
Previous Message Bill Moran 2007-01-17 17:52:03 Re: Index bloat of 4x