Re: Number of Connections

From: "Bryan White" <bryan(at)arcamax(dot)com>
To: "pgsql-general" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: Number of Connections
Date: 2001-02-16 19:09:42
Message-ID: 00c201c0984c$048d9d20$2dd260d1@arcamax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Hello,
>
> I'm a bit new to postgres. Is there anyway to tell the current number of
> connections on a database or server? I'm having a connection closing
> problem and would like to debug it somehow. I know on Sybase you can
check
> a sys table to determine this. Not familiar with how to do this on
> Postgres.

I use:
ps ax | grep postgres | wc -l
Note the value is often one to high because is picks up the grep process.

Use
ps ax | grep postgres
to look at the processes and see what IP are connected, what users, and what
the backend is doing (IDLE, SELECT, ..)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan Wilson 2001-02-16 19:22:20 Re: order of clauses
Previous Message Stephan Szabo 2001-02-16 19:02:49 Re: order of clauses