Re: pg_dumpall - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dumpall
Date
Msg-id 13508.1045682419@sss.pgh.pa.us
Whole thread Raw
In response to pg_dumpall  ("Donald Fraser" <demolish@cwgsy.net>)
List pgsql-admin
"Donald Fraser" <demolish@cwgsy.net> writes:
> 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 =3D postgres TEMPLATE =3D template0 ENCOD=
> ING =3D 'SQL_ASCII';

> I don't know whether this is a bug or not

It is not; the use of template0 is intentional.  (Otherwise, whatever
local additions may exist in template1 would get duplicated.)

            regards, tom lane

pgsql-admin by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: pg_dumpall
Next
From: Robert Treat
Date:
Subject: Re: Unable to run pg_dump from crontab