X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 860F0D1C4BF for ; Mon, 21 Jul 2003 03:58:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 70903-05 for ; Mon, 21 Jul 2003 03:58:46 +0000 (GMT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 98480D1C4B7 for ; Mon, 21 Jul 2003 00:58:45 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h6L3wem24028; Sun, 20 Jul 2003 23:58:40 -0400 (EDT) From: Bruce Momjian Message-Id: <200307210358.h6L3wem24028@candle.pha.pa.us> Subject: Re: Renaming a DB In-Reply-To: <6927.1057455407@sss.pgh.pa.us> To: Tom Lane Date: Sun, 20 Jul 2003 23:58:40 -0400 (EDT) Cc: Mendola Gaetano , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/196 X-Sequence-Number: 9536 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). Tom, why was a VACUUM FULL required? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073