Re: restored over postgres database

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Kevin Duffy" <KD(at)wrinvestments(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: restored over postgres database
Date: 2008-12-03 16:49:54
Message-ID: dcc563d10812030849l2f9576beu13140730e5d8f31d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 3, 2008 at 9:38 AM, Kevin Duffy <KD(at)wrinvestments(dot)com> wrote:
> Hello:
>
>
>
> On a newly installed PostgreSQL server I made the mistake of restoring over
> the postgres database.
>
> Which I made me feel very silly and brought up a couple of questions.
>
>
>
> a) What is the postgres database used for?

By default, nothing usually. Whatever you're using it for is usually it.

> b) How can I restore the postgres database to a pristine state?

shut down postgres
delete everything in the $PGDATA directory (or whatever comes after -D
when it starts up)
run initdb
start postgres

All should now be clean and fresh.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-12-03 16:51:19 Re: Limit on number of databases in a Cluster ?
Previous Message Kevin Duffy 2008-12-03 16:38:54 restored over postgres database