X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 59EFE4758FE for ; Sun, 30 Mar 2003 15:21:47 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 41BA0474E5C for ; Sun, 30 Mar 2003 15:21:43 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 4F342D623; Sun, 30 Mar 2003 12:21:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 44EE65C0D; Sun, 30 Mar 2003 12:21:43 -0800 (PST) Date: Sun, 30 Mar 2003 12:21:43 -0800 (PST) From: Stephan Szabo To: Tamir Halperin Cc: Subject: Re: pgAdmin II questions In-Reply-To: <985DF46E87E0C047A3670048DBCAD0556BFC@andrew.brobus.net> Message-ID: <20030330121626.Q24855-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-25.8 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/491 X-Sequence-Number: 8131 I don't know much about pgAdmin itself, but... On Sun, 30 Mar 2003, Tamir Halperin wrote: > I remember creating a db called taxcal and it's listed there. However, > I don't remember creating a db called pgsql. It's possible it got created as a side effect of the system upgrade. > Also, I can't drop it (by right clicking on it and selecting drop > object from the shortcut menu. After being warned that the action > cannot be undone I agree and an error comes up: > > "An error as occured in pgAdmin II:basActions.drop: > > Number: -2147467259 > Description: ERROR: DROP DATABASE: database "pgsql" is being accessed > by other users Are there any connections to it on the server? You can check with ps. > Another thing I need help with is the appearance of both "template0" > as well as "template1". I can't seem to delete template0 because the > error from the drop action informs me that it is marked as a template. Deleting template0 or template1 (unless you're just going to recreate it from template0) is a bad idea. They're the template databases from which new databases are created (IIRC, template0 is just system things and template1 can include anything you want to be clone in newly created databases - such as language handlers, or wahtever).