pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Renaming a DB
Date: Sat, 5 Jul 2003 10:42:26 +0200
Message-ID: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org> (raw)

Hi all,
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.

however trying after a while ( without do nothing ) I'm
able to connect to "new_name" database, is like the names
of database are cached somewhere and this cache expire
after a while.

Any idea ?


Regards
Gaetano Mendola




view thread (8+ messages)  latest in thread

Message-ID: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org>
Permalink:  ../003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org/
Also on:    postgresql.org/message-id/003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org

 · 

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: mendola@bigfoot.com
  Subject: Re: Renaming a DB
  In-Reply-To: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org>
  References: <003d01c342d1$5d2304c0$10d4a8c0@mm.eutelsat.org>

* 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