Re: DROP DATABASE, but still there - Mailing list pgsql-general

From Tom Lane
Subject Re: DROP DATABASE, but still there
Date
Msg-id 11627.1100207660@sss.pgh.pa.us
Whole thread Raw
In response to Re: DROP DATABASE, but still there  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> Robert Fitzpatrick <robert@webtent.com> writes:
>> Yeah, I was just starting to realize that these objects that keep coming
>> back are in the template1 as well.....any reason why I shouldn't drop
>> the template1 and re-create like any other?

> You can do that but you'll have to do:
>   CREATE DATABASE template1 WITH template = 'template0'

Also there are several safety interlocks you'll have to defeat, IIRC.
It's not rocket science but I'd recommend consulting the writeup on
techdocs.postgresql.org about the exact process for recreating
template1.

            regards, tom lane

pgsql-general by date:

Previous
From: Dawid Kuroczko
Date:
Subject: Re: comp.database.postgresql.*
Next
From: Frank Bax
Date:
Subject: Re: [NOVICE] OID Question