Re: many idle processes

From: Doug McNaught <doug(at)wireboard(dot)com>
To: "John Liu" <johnl(at)synthesys(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: many idle processes
Date: 2002-07-31 16:24:46
Message-ID: m34ref50hd.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"John Liu" <johnl(at)synthesys(dot)com> writes:

> I tried to understand what causes
> too many pgsql idle processes. Can
> postmaster automatically aged and
> cleaning up those unused idle process?

Those processes are attached to open client connections. If you don't
like them, change your client to close connections when it's not using
them, but your app will be slower since creating a new connection
(and backend process) takes some time.

> Is there a catalog to track those
> psql processes - what their functions, who
> issues, etc.?

There is one backend process per open client connection, plus the
postmaster, which handles creating new connections.

-Doug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2002-07-31 16:45:00 Re: Trim the Fat (Was: Re: Open 7.3 items )
Previous Message Zeugswetter Andreas SB SD 2002-07-31 16:16:05 Re: Rules and Views