Number of Active Connections

Started by MaRCeLO PeReiRAover 21 years ago4 messagesgeneral
Jump to latest
#1MaRCeLO PeReiRA
gandalf_mp@yahoo.com.br

Hi guys,

How can I know about the number of active
connections?? (not the maximum allowed, but the number
of open connections).

Regards,

Marcelo Pereira
Brasil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#2elein
elein@varlena.com
In reply to: MaRCeLO PeReiRA (#1)
Re: Number of Active Connections

select count(*) from pg_stat_activity;

for detailed info use:

select * from pg_stat_activity;

Show quoted text

On Mon, Sep 13, 2004 at 02:49:36PM -0300, MaRCeLO PeReiRA wrote:

Hi guys,

How can I know about the number of active
connections?? (not the maximum allowed, but the number
of open connections).

Regards,

Marcelo Pereira
Brasil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

#3Gaetano Mendola
mendola@bigfoot.com
In reply to: MaRCeLO PeReiRA (#1)
Re: Number of Active Connections

MaRCeLO PeReiRA wrote:

Hi guys,

How can I know about the number of active
connections?? (not the maximum allowed, but the number
of open connections).

If you have enough permission:

select count(*) from pg_stat_activity;

Regards
Gaetano Mendola

#4MaRCeLO PeReiRA
gandalf_mp@yahoo.com.br
In reply to: elein (#2)
Re: Number of Active Connections

Hi Elein,

Thanks!! It was exactly what I was looking for!!!

Regards,

Marcelo Pereira
Brasil

 --- elein <elein@varlena.com> escreveu: 

select count(*) from pg_stat_activity;

for detailed info use:

select * from pg_stat_activity;

On Mon, Sep 13, 2004 at 02:49:36PM -0300, MaRCeLO
PeReiRA wrote:

Hi guys,

How can I know about the number of active
connections?? (not the maximum allowed, but the

number

of open connections).

Regards,

Marcelo Pereira
Brasil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam

protection around

http://mail.yahoo.com

---------------------------(end of

broadcast)---------------------------

TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

_______________________________________________________
Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita divers�o. Instale agora!
http://br.download.yahoo.com/messenger/