Обсуждение: deleting db cluster

Поиск
Список
Период
Сортировка

deleting db cluster

От
Ulas Albayrak
Дата:
Hi,

I have a Linux/Debian machine running postgres 8.3 and I need to
remove a database cluster that I created with the "initdb" command. Is
it enough to just delete the folder in which the cluster resides on
the filesystem, or does it require some additional actions?

Regards
--
Ulas Albayrak
ulas.albayrak@gmail.com

Re: deleting db cluster

От
"Joshua D. Drake"
Дата:
On Tue, 2010-08-03 at 16:15 +0200, Ulas Albayrak wrote:
> Hi,
>
> I have a Linux/Debian machine running postgres 8.3 and I need to
> remove a database cluster that I created with the "initdb" command. Is
> it enough to just delete the folder in which the cluster resides on
> the filesystem, or does it require some additional actions?

If you remove the data directory (the folder you specifified with
initdb) then the database is gone.

JD

>
> Regards
> --
> Ulas Albayrak
> ulas.albayrak@gmail.com
>

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt

Re: deleting db cluster

От
"Joshua D. Drake"
Дата:
On Tue, 2010-08-03 at 16:15 +0200, Ulas Albayrak wrote:
> Hi,
>
> I have a Linux/Debian machine running postgres 8.3 and I need to
> remove a database cluster that I created with the "initdb" command. Is
> it enough to just delete the folder in which the cluster resides on
> the filesystem, or does it require some additional actions?

If you remove the data directory (the folder you specifified with
initdb) then the database is gone.

JD

>
> Regards
> --
> Ulas Albayrak
> ulas.albayrak@gmail.com
>

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt