Received: from rimbaud.uol.com.br ([200.231.206.24]) by hub.org (8.10.1/8.10.1) with ESMTP id e7GGErn76565 for ; Wed, 16 Aug 2000 12:14:53 -0400 (EDT) Received: from uol.com.br (200-221-36-41.dsl-sp.uol.com.br [200.221.36.41]) by rimbaud.uol.com.br (8.9.1/8.9.1) with ESMTP id NAA29419 for ; Wed, 16 Aug 2000 13:13:36 -0300 (BRT) Message-ID: <399ADF1A.258B21CE@uol.com.br> Date: Wed, 16 Aug 2000 15:36:10 -0300 From: Roberto Nakai Organization: NetZone (www.netzone.com.br) X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: How to drop a template1 owner user Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/24 pgsql-admin, I don't know if this is the right place to ask for your help. If it's not, sorry... I've been using PostgreSQL 7.0 for a few months. Suddenly, every database belongs to two users: "postgres" and "enhydra". This may be due to some bad export/import operation... The former is the usual one, the later is another user that I've created. The fact is that when I'm connected as "enhydra" and I drop a database, the database that belongs to "postgres" and has the same name is also dropped. When I try to drop the "enhydra" user, I get the following message: ERROR: DROP USER: user "enhydra" owns database "template1", cannot be removed dropuser: deletion of user "enhydra" failed I think that if I could be able to drop the "enhyhdra" user, I could solve my problem. Thanks, Roberto Nakai, NZ Tech.