X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id AECB9B427D9 for ; Sun, 6 Jul 2003 02:31:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 66278-07 for ; Sat, 5 Jul 2003 23:31:14 -0300 (ADT) Received: from smtp.noos.fr (nan-smtp-03.noos.net [212.198.2.72]) by svr1.postgresql.org (Postfix) with ESMTP id 60B8EB4315F for ; Sat, 5 Jul 2003 23:31:14 -0300 (ADT) Received: (qmail 22999356 invoked by uid 0); 6 Jul 2003 02:31:19 -0000 Received: from unknown (HELO gmendola) ([212.198.37.110]) (envelope-sender ) by 212.198.2.72 (qmail-ldap-1.03) with SMTP for ; 6 Jul 2003 02:31:19 -0000 Message-ID: <000e01c34366$9bcacbf0$10d4a8c0@mm.eutelsat.org> From: "Mendola Gaetano" To: "Tom Lane" Cc: References: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org> <6927.1057455407@sss.pgh.pa.us> Subject: Re: Renaming a DB Date: Sun, 6 Jul 2003 04:30:46 +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/50 X-Sequence-Number: 9391 "Tom Lane" wrote: > "Mendola Gaetano" writes: > > I'm running a Postgres 7.3.3 and I had the necessity to > > rename a DB, I did this by updating the pg_database > > table. > > If I perform psql -l I'm able to see that is reported the > > correct name ( I guess because a select on pg_database > > table is performed ) but if I try to connect to the DB > > after the renaming I obtain the error: > > psql: FATAL: Database "new_name" does not exist in > > the system catalog. > > Try vacuuming pg_database (you can do this from any database, > it need not be the one that is having the problem). A normal vacuum was not enough I did a vacuum full and seems working. Thank you Gaetano Mendola