Number of Connections ?

Started by Erwin Ambroschover 24 years ago2 messagesgeneral
Jump to latest
#1Erwin Ambrosch
ambre@ebutec.com

Hi,

is there a query to ask my PostgeSql backend how much connections are
currently open?

Thanks Erwin

#2Jan Wieck
JanWieck@Yahoo.com
In reply to: Erwin Ambrosch (#1)
Re: Number of Connections ?

Erwin Ambrosch wrote:

Hi,

is there a query to ask my PostgeSql backend how much connections are
currently open?

New functionality in v7.2. Given your configuration starts at
least the collector daemon (defaults to get started,
configuration is in postgres.conf), you can

SELECT count(*) from pg_stat_activity;

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com