Re: [ADMIN] problems with pg_restore - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [ADMIN] problems with pg_restore
Date
Msg-id 20030715204704.GC9410@dcc.uchile.cl
Whole thread Raw
In response to Re: [ADMIN] problems with pg_restore  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [ADMIN] problems with pg_restore  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Jul 15, 2003 at 04:03:13PM -0400, Tom Lane wrote:

> Given the current implementation, it seems like there are three possible
> behaviors for COMMENT ON DATABASE when the database name isn't the same
> as the current database:

There's a fourth possibility:  ignore the command and issue a WARNING.
Restores the database in both cases (in same database and in a different
one), and sets the correct comment only if the database name is correct,
giving a hint that the comment should be manually set.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"I can't go to a restaurant and order food because I keep looking at the
fonts on the menu.  Five minutes later I realize that it's also talking
about food" (Donald Knuth)

pgsql-hackers by date:

Previous
From: Kurt Roeckx
Date:
Subject: Re: OSF build fixed
Next
From: Tom Lane
Date:
Subject: Re: OSF build fixed