X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4D69AD1C513 for ; Wed, 30 Jul 2003 14:44:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63508-07 for ; Wed, 30 Jul 2003 11:43:34 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id B8913D1C509 for ; Wed, 30 Jul 2003 11:44:29 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h6UEla231980; Wed, 30 Jul 2003 16:47:36 +0200 Received: from gmendola (gmendola.mm.eutelsat.org [194.214.173.50]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with SMTP id h6UEehR17582; Wed, 30 Jul 2003 16:40:43 +0200 Message-ID: <001b01c356a8$e3bacaf0$32add6c2@mm.eutelsat.org> From: "Mendola Gaetano" To: Cc: "Tom Lane" References: <1059470890.5588.41.camel@cosimo.hosting365.ie> <00ac01c3562c$18a76840$10d4a8c0@mm.eutelsat.org> <9583.1059575218@sss.pgh.pa.us> Subject: Re: Postgres db corrupted ? Date: Wed, 30 Jul 2003 16:43:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/326 X-Sequence-Number: 9666 "Tom Lane" > "Mendola Gaetano" writes: > > ""John P. Looney"" writes: > >> bbadmin | | SQL_ASCII > > > For sure a way to obtain this inconsistence is delete the owner of > > a db and voila' a DB result to have no owner. > > Nope. I don't know how John got into this state, but it most definitely > was not that way. Try it. Here it his: kalman@XXX [] > createuser jfk Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) y CREATE USER kalman@XXX [] > psql -U jfk template1 Welcome to psql 7.3.3, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=# create database db_jfk; CREATE DATABASE template1=# \q kalman@XXX [] > psql -l | grep jfk db_jfk | jfk | SQL_ASCII kalman@XXX [] > psql template1 Welcome to psql 7.3.3, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=# delete from pg_shadow where usename = 'jfk'; DELETE 1 template1=# \q kalman@XXX [] > psql -l | grep jfk db_jfk | | SQL_ASCII Regards Gaetano