Re: BUG #3760: Comment on restore database - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #3760: Comment on restore database
Date
Msg-id 20071119184945.GH18602@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #3760: Comment on restore database  (Bruce Momjian <bruce@momjian.us>)
Responses Re: BUG #3760: Comment on restore database  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
Bruce Momjian wrote:
> Malcus Imhof wrote:

> Yea, the dump thinks it is going into the same database.  I don't see
> any way of fixing that.  We don't allow functions for the object name.
> If we did we could use current_database().  Fortunately I think it is
> the only place where the database name is hardcoded in the dump.

The easiest would be to add new syntax,
COMMENT ON CURRENT DATABASE IS 'foo'

--
Alvaro Herrera                        http://www.advogato.org/person/alvherre
"Llegará una época en la que una investigación diligente y prolongada sacará
a la luz cosas que hoy están ocultas" (Séneca, siglo I)

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #3760: Comment on restore database
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #3760: Comment on restore database