Skip site navigation (1) Skip section navigation (2)

Re: How to drop a database cluster?

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Slobodan <slobodan(at)freemail(dot)hu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to drop a database cluster?
Date: 2004-10-21 18:36:15
Message-ID: 1098383775.15573.7.camel@camel (view raw or flat)
Thread:
Lists: pgsql-admin
On Thu, 2004-10-21 at 10:43, Slobodan wrote:
> Hi!
> 
> I cannot find the way of dropping a database cluster in the 
> documentation. Should I simply remove the directory associated with 
> the cluster?
> 

I take you don't want to use the DROP DATABASE command, but instead are
trying to drop all databases from a system? If so, remove whatever
directory PGDATA is set to and then run initdb on the new PGDATA
directory. Be aware that this is basically like starting from scratch,
you will lose all of your information.

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


In response to

pgsql-admin by date

Next:From: Robert TreatDate: 2004-10-21 18:38:55
Subject: Re: data not getting inserted into table
Previous:From: Gaetano MendolaDate: 2004-10-21 17:42:39
Subject: Re: NIC to NIC connection

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group