Re: PGSQL-IDLE connection problem

From: Flavio Henrique Araque Gurgel <flavio(at)4linux(dot)com(dot)br>
To: Sathish Reddy Yelala <sathishy040(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PGSQL-IDLE connection problem
Date: 2013-01-29 11:32:19
Message-ID: 5107B343.4070807@4linux.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Em 28-01-2013 07:12, Sathish Reddy Yelala escreveu:
> Hi,
>
> we had problem with <IDLE> connections.when we start the database
> there huge number of connections goes to <IDLE> which leads to database
> access slow.

These connections are opened by your client application, not by PostgreSQL.

> How can we prevent the <IDLE> connections and also where we can see
> the <IDLE> connection query so that we can identify.

You should consider looking at your application and how it handles the
connections it opens. What kind of application you have, distributed
clients or application server?

There's nothing to see about connections in <IDLE> state. They are doing
nothing, there's no query or transaction. They are just open connections.

Consider looking at the view pg_stat_activity. There you can see
username, IP and other things about these connections.

Regards,

__________________________________
Flavio Henrique A. Gurgel
Líder de Projetos Especiais
Consultoria, Projetos & Treinamentos 4LINUX
Tel1: +55-11.2125-4747 ou 2125-4748
www.4linux.com.br
email: flavio(at)4linux(dot)com(dot)br
______________________________
FREE SOFTWARE SOLUTIONS

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Heikki Linnakangas 2013-01-29 16:32:54 Re: corrupted indexes when using base backups generated from hot standby
Previous Message Sathish Reddy Yelala 2013-01-28 09:12:19 PGSQL-IDLE connection problem