Re: template0 and template1 databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Gould <andrewgould(at)yahoo(dot)com>
Cc: "J(dot)H(dot)M(dot) Dassen \(Ray\)" <jdassen(at)cistron(dot)nl>, pgsql-general(at)postgresql(dot)org
Subject: Re: template0 and template1 databases
Date: 2001-09-06 15:50:00
Message-ID: 2395.999791400@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Gould <andrewgould(at)yahoo(dot)com> writes:
> So if I'm running PostgreSQL 7.1.3 and have pg_dumped
> my databases, I can 'dropdb template0'?

That would be A Bad Move. template0 is what pg_dumpall expects to use
to build new databases. See the discussion near the bottom of
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/sql-createdatabase.html
(possibly this should be duplicated somewhere in the Administrator's Guide).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-09-06 15:56:42 Re: createdb buggy?
Previous Message Bruce Momjian 2001-09-06 15:49:58 Re: Bug in createlang?