pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mendola Gaetano <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Renaming a DB
Date: Sat, 05 Jul 2003 21:36:47 -0400
Message-ID: <6927.1057455407@sss.pgh.pa.us> (raw)
In-Reply-To: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org>
References: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org>

"Mendola Gaetano" <mendola@bigfoot.com> 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



view thread (8+ messages)  latest in thread

Message-ID: <6927.1057455407@sss.pgh.pa.us>
Permalink:  ../6927.1057455407@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6927.1057455407@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mendola@bigfoot.com
  Subject: Re: Renaming a DB
  In-Reply-To: <6927.1057455407@sss.pgh.pa.us>
  References: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org> <6927.1057455407@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox