Re: BUG #3760: Comment on restore database

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Malcus Imhof <malcus(at)terra(dot)com(dot)br>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3760: Comment on restore database
Date: 2007-11-19 18:49:45
Message-ID: 20071119184945.GH18602@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2007-11-19 19:27:15 Re: BUG #3760: Comment on restore database
Previous Message Bruce Momjian 2007-11-19 18:41:46 Re: BUG #3760: Comment on restore database