Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group