From: Tim Barnard <tbarnard@povn.com>
To: romio@il.aduva.com
Cc: pgsql-general@postgresql.org
Subject: Re: [ADMIN] Monitoring database
Date: Mon, 14 Jan 2002 07:36:29 -0800
Message-ID: <005b01c19d11$3c7e4e80$a519af3f@hartcomm.com> (raw)
References: <3C3C2A12.BB15E98@il.aduva.com>
I don't think there is currently a way to check the database for connections (someone correct me if I'm wrong). But to get a list of all of the tables in template1:
\c template1
select relname from pg_class
Tim
----- Original Message -----
From: Roman Gavrilov
To: pgsql-admin@postgresql.org
Sent: Wednesday, January 09, 2002 3:31 AM
Subject: [ADMIN] Monitoring database
Hello everybody.
Is there any way to check database status, or who is currently connected to it.
I tried to drop database and got an error saying that other users using this database.
So I wanted to see who is connected right now to the database.
One more question is how can I see all tables in the template1 ?
Thanks allot.
--
-----------------------------------------------------------------------------
Roman Gavrilov
Aduva Inc., Web Development Services.
work +972-3-7534324 mobile +972-54-834668
romio@aduva.com, romio@netvision.net.il
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tbarnard@povn.com, romio@il.aduva.com, pgsql-general@postgresql.org
Subject: Re: [ADMIN] Monitoring database
In-Reply-To: <005b01c19d11$3c7e4e80$a519af3f@hartcomm.com>
References: <3C3C2A12.BB15E98@il.aduva.com> <005b01c19d11$3c7e4e80$a519af3f@hartcomm.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