From: Scott Marlowe <scott.marlowe@gmail.com>
To: Naomi Walker <nwalker@mhs.mphasis.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Find who is connected to a database
Date: Wed, 31 Oct 2007 09:42:13 -0500
Message-ID: <dcc563d10710310742x7c709021lb36b9551d5cec62b@mail.gmail.com> (raw)
In-Reply-To: <4722694D.3050109@mhs.mphasis.com>
References: <4722694D.3050109@mhs.mphasis.com>
On 10/26/07, Naomi Walker <nwalker@mhs.mphasis.com> wrote:
> I'm trying to drop a database in a postgres 8.1.4 instance (x86 Solaris
> 10 OS), but someone is connected to
> the database. What is the best way to find out exactly who is connected?
select * from pg_stat_activity;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, nwalker@mhs.mphasis.com
Subject: Re: Find who is connected to a database
In-Reply-To: <dcc563d10710310742x7c709021lb36b9551d5cec62b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox