Re: Re-Init database cluster.

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Re-Init database cluster.
Дата
Msg-id Pine.LNX.4.33.0403190850230.14704-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re-Init database cluster.  (Louie Kwan <lkwan@nuvo.com>)
Список pgsql-admin
On Wed, 17 Mar 2004, Louie Kwan wrote:

> Hi All,
>
> I did a pg_dumpall and psql the output and created a db. Basically, I would
> like to clean up  everything including users and groups.
>
> I tried to do initdb, but it didn't work.
>
> My question is that can I just delete the directory where the database
> cluster stored before.
>
> I.e. rm -rf /var/lib/pgsql/data
>
> Or I should do something else to re-init the database cluster.

You might wanna back up your pg_hba.conf and postgresql.conf files first,
if you've got any settings in there you'd like to keep.  but yeah, that's
the first step.  If you've got the space to back up the whole directory
I'd advise you do that as well first.

Then initdb --locale=youlocalehere

and you're off.  but like Tom said, what made you wanna do this?  Just
wanting a fresh start?  Corruption?  etc...?


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: create function problem
Следующее
От: Naomi Walker
Дата:
Сообщение: Re: backup and recovery