Re: pg_dumpall

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Donald Fraser <demolish(at)cwgsy(dot)net>
Cc: "[ADMIN]" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_dumpall
Date: 2003-02-19 19:29:40
Message-ID: 20030219112211.K36237-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Wed, 19 Feb 2003, Donald Fraser wrote:

> PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96
>
> I issue the following command:
> CREATE DATABASE "CISX" WITH OWNER = postgres TEMPLATE = template1 ENCODING = 'SQL_ASCII';
>
> When I do a backup from the database using pg_dumpall (with no command line options) it creates the following:
> CREATE DATABASE "CISX" WITH OWNER = postgres TEMPLATE = template0 ENCODING = 'SQL_ASCII';
>
> I don't know whether this is a bug or not as I can't find any hard documentation to say otherwise?

I'd guess not, because the objects you copied from template1 when making
the database are part of the dumpall output. If you made it from
template1 after the backup you'd get anything that was in the new
template1 plus all of the old objects.

In response to

  • pg_dumpall at 2003-02-19 19:16:21 from Donald Fraser

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ed L. 2003-02-20 01:11:33 Re: server won't shutdown
Previous Message Tom Lane 2003-02-19 19:20:19 Re: pg_dumpall