Re: Cannot drop template1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Raymond O'Donnell" <rod(at)iol(dot)ie>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot drop template1
Date: 2004-12-14 14:27:10
Message-ID: 14206.1103034430@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Raymond O'Donnell" <rod(at)iol(dot)ie> writes:
> dropdb -U postgres -W template1
> at the command line, all I get back is "dropdb: database removal
> failed: ERROR: cannot drop the currently open database".

That's because the dropdb command itself connects to template1.

See the article on techdocs.postgresql.org about rebuilding template1
to find out about all the gotchas and workarounds needed to do this.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2004-12-14 14:29:25 Re: Best practice in postgres
Previous Message Együd Csaba (Freemail) 2004-12-14 13:49:25 Re: Insufficient memory for this operation.