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 14472B430AD for ; Sun, 6 Jul 2003 01:36:54 +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 48723-09 for ; Sat, 5 Jul 2003 22:36:43 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id C3481B427D9 for ; Sat, 5 Jul 2003 22:36:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h661alQ3006928; Sat, 5 Jul 2003 21:36:47 -0400 (EDT) To: "Mendola Gaetano" Cc: pgsql-admin@postgresql.org Subject: Re: Renaming a DB In-reply-to: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org> References: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org> Comments: In-reply-to "Mendola Gaetano" message dated "Sat, 05 Jul 2003 10:42:26 +0200" Date: Sat, 05 Jul 2003 21:36:47 -0400 Message-ID: <6927.1057455407@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/49 X-Sequence-Number: 9390 "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). regards, tom lane