Re: Find the Person Connected to a Database - Mailing list pgsql-admin

From Naomi Walker
Subject Re: Find the Person Connected to a Database
Date
Msg-id 47227597.7030306@mhs.mphasis.com
Whole thread Raw
In response to Re: Find the Person Connected to a Database  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Thanks for jogging my memory!  Works like a charm.

Naomi
select * from pg_stat_activity where datname = <the_db_about_to_be_dropped>;   
If that doesn't work because you've got stats collection turned off,
"ps" will help too:

http://www.postgresql.org/docs/8.1/static/monitoring.html

On Solaris, note the Tip at the bottom (not sure if it applies to recent
Solaris versions but a few years ago it was critical).
		regards, tom lane 


-- 
------------------------------------------------------------------------
Naomi Walker                          Chief Information Officer
Mphasis Healthcare Solutions          nwalker@mhs.mphasis.com ---An EDS Company                   602-604-3100
------------------------------------------------------------------------
"Intellectuals solve problems; geniuses prevent them." --  Albert Einstein
------------------------------------------------------------------------

-- CONFIDENTIALITY NOTICE --

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailmaster@mphasis.com and delete this e-mail from your records.

 

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Find the Person Connected to a Database
Next
From: David Lowry
Date:
Subject: Re: way to turn off epochs in log_filename