From: Tena Sakai <tsakai@gallo.ucsf.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: I want to find out who is using a database
Date: Tue, 9 Nov 2010 18:17:48 -0800
Message-ID: <C8FF4024.D06A%tsakai@gallo.ucsf.edu> (raw)
Hi Everybody,
I want to drop a database and recreate it from a backup file.
But when I issue a dropdb command it wouldn’t let me do
so. It tells me: database xxxxx is being accessed by other
users.
Can somebody please tell me how I find who it is using the
xxxxx database?
Thank you.
Regards,
Tena Sakai
tsakai@gallo.ucsf.edu
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
Subject: Re: I want to find out who is using a database
In-Reply-To: <C8FF4024.D06A%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