From: Tena Sakai <tsakai@gallo.ucsf.edu>
To: Shoaib Mir <shoaibmir@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: I want to find out who is using a database
Date: Tue, 9 Nov 2010 18:32:28 -0800
Message-ID: <C8FF4392.D072%tsakai@gallo.ucsf.edu> (raw)
In-Reply-To: <AANLkTim9YFOX0Q7hT1yE=+hdz3LhNdmjt9pYaTpYi2mY@mail.gmail.com>
Thank you, Shoaib.
Tena
On 11/9/10 6:26 PM, "Shoaib Mir" <shoaibmir@gmail.com> wrote:
On Wed, Nov 10, 2010 at 1:17 PM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
Can somebody please tell me how I find who it is using the
xxxxx database?
select * from pg_stat_activity where datname = '<yourdbname>';
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: tsakai@gallo.ucsf.edu, shoaibmir@gmail.com
Subject: Re: I want to find out who is using a database
In-Reply-To: <C8FF4392.D072%tsakai@gallo.ucsf.edu>
* 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