Re: pg_dump and alter database

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: btober(at)seaworthysys(dot)com, <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump and alter database
Date: 2003-08-22 17:25:39
Message-ID: Pine.LNX.4.44.0308221922130.9019-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane writes:

> Also, a pg_dump script doesn't (and shouldn't, IMHO) assume it knows the
> name of the database it's being restored into.

That is pretty much it; pg_dump doesn't record any information about the
database, no matter whether that information happens to be represented in
the command CREATE DATABASE or ALTER DATABASE. But if you use pg_dump -C,
then ALTER DATABASE ought to be dumped.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2003-08-22 17:38:11 Inserting CR/LF in a select?
Previous Message Fernando Schapachnik 2003-08-22 17:23:11 Re: pg_dump and alter database