dbTalk Databases Forums  

Is there a command to to display active connections

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Is there a command to to display active connections in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Fabiani
 
Posts: n/a

Default Is there a command to to display active connections - 04-25-2004 , 09:55 AM






Hi,
I attempting to figure out how many connections are open to my database. I'm
asking because I'd like to keep track of the connection pool.
John


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #2  
Old   
Oliver Fromme
 
Posts: n/a

Default Re: Is there a command to to display active connections - 04-26-2004 , 02:20 AM







John Fabiani wrote:
Quote:
I attempting to figure out how many connections are open to my
database. I'm asking because I'd like to keep track of the
connection pool.
SELECT * FROM pg_stat_activity;

(It's in the documentation.)

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"File names are infinite in length, where infinity is set to 255 characters."
-- Peter Collinson, "The Unix File System"

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.