Re: Number of Connections - Mailing list pgsql-general

From Bryan White
Subject Re: Number of Connections
Date
Msg-id 00c201c0984c$048d9d20$2dd260d1@arcamax.com
Whole thread Raw
In response to Number of Connections  ("Steve McAtee" <steve@proactivedev.com>)
Responses Re: Number of Connections
List 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, ..)



pgsql-general by date:

Previous
From: "Rod Taylor"
Date:
Subject: SPI_finish()
Next
From: Leon Sol Levy
Date:
Subject: creating assertions in functions