Received: from cps.criterian.com ([63.175.25.6]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0EFaiB33404 for ; Mon, 14 Jan 2002 10:36:44 -0500 (EST) (envelope-from tbarnard@povn.com) Received: from dev6 (dev5.hartcomm.com [63.175.25.165]) by cps.criterian.com (8.11.2/8.8.7) with SMTP id g0EFUC818451; Mon, 14 Jan 2002 07:30:13 -0800 Message-ID: <005b01c19d11$3c7e4e80$a519af3f@hartcomm.com> From: "Tim Barnard" To: Cc: References: <3C3C2A12.BB15E98@il.aduva.com> Subject: Re: [ADMIN] Monitoring database Date: Mon, 14 Jan 2002 07:36:29 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0058_01C19CCE.2DE59060" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Archive-Number: 200201/371 X-Sequence-Number: 19321 This is a multi-part message in MIME format. ------=_NextPart_000_0058_01C19CCE.2DE59060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I don't think there is currently a way to check the database for connection= s (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 -----=20 From: Roman Gavrilov=20 To: pgsql-admin@postgresql.org=20 Sent: Wednesday, January 09, 2002 3:31 AM Subject: [ADMIN] Monitoring database Hello everybody.=20 Is there any way to check database status, or who is currently connected = to it.=20 I tried to drop database and got an error saying that other users using t= his database.=20 So I wanted to see who is connected right now to the database.=20 One more question is how can I see all tables in the template1 ?=20 Thanks allot.=20 --=20 ---------------------------------------------------------------------------= -- Roman Gavrilov=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 Aduva Inc., Web Development Services.=20=20=20=20 work +972-3-7534324 mobile +972-54-834668 romio@aduva.com, romio@netvision.net.il =20=20=20=20 ------=_NextPart_000_0058_01C19CCE.2DE59060 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I don't think there is currently a way to = check the=20 database for connections (someone correct me if I'm wrong). But to get a li= st of=20 all of the tables in template1:
 
\c template1
select relname from pg_class
 
Tim
----- Original Message -----
Fro= m:=20 Roman=20 Gavrilov
Sent: Wednesday, January 09, 2002 = 3:31=20 AM
Subject: [ADMIN] Monitoring=20 database

Hello everybody.
Is there any way to check database st= atus,=20 or who is currently connected to it.
I tried to drop database and got= an=20 error saying that other users using this database.
So I wanted t= o see=20 who is connected right now to the database.=20

One more question is how can I see all tables in the template1 ?
T= hanks=20 allot.

-- 
---------------------------------------------------------------------------=
--
 Roman Gavrilov         &=
nbsp;           &nbs=
p;     
 Aduva Inc., Web Development Services.    
 work +972-3-7534324 mobile +972-54-834668
 romio@aduva.com, romio@netvision.net.il
 =20 ------=_NextPart_000_0058_01C19CCE.2DE59060--