pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Donald Fraser <demolish@cwgsy.net>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: pg_dumpall
Date: Wed, 19 Feb 2003 11:29:40 -0800 (PST)
Message-ID: <20030219112211.K36237-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <005401c2d84b$660fbf10$1664a8c0@DEMOLITION>


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.





view thread (7+ messages)  latest in thread

Message-ID: <20030219112211.K36237-100000@megazone23.bigpanda.com>
Permalink:  ../20030219112211.K36237-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030219112211.K36237-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, demolish@cwgsy.net
  Subject: Re: pg_dumpall
  In-Reply-To: <20030219112211.K36237-100000@megazone23.bigpanda.com>
  References: <005401c2d84b$660fbf10$1664a8c0@DEMOLITION> <20030219112211.K36237-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox