Re: many idle processes - Mailing list pgsql-hackers

From Doug McNaught
Subject Re: many idle processes
Date
Msg-id m34ref50hd.fsf@varsoon.wireboard.com
Whole thread Raw
In response to many idle processes  ("John Liu" <johnl@synthesys.com>)
List pgsql-hackers
"John Liu" <johnl@synthesys.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


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Rules and Views
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Trim the Fat (Was: Re: Open 7.3 items )