RE : Re: Problem with template1 database

From: toto titi <marc(dot)davanier(at)yahoo(dot)fr>
To: pgsql-novice(at)postgresql(dot)org
Subject: RE : Re: Problem with template1 database
Date: 2006-09-27 11:40:27
Message-ID: 20060927114027.44259.qmail@web28114.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> a écrit :

> Michael Fuhr <mike(at)fuhr(dot)org> writes:
> > On Fri, Sep 15, 2006 at 02:46:21PM +0200, toto
> titi wrote:
> >> pg_dumpall: could not connect to database
> "template1": FATAL: database "template1" does not
> exist
> >> DETAIL: The database subdirectory
> "/var/lib/pgsql/data/base/1" is missing.
> >>
> >> And effectively the /var/lib/pgsql/data/base/1
> directory is missing on my server.
>
> > Do you know how template1's directory went
> missing? That's a mystery
> > that deserves investigation so you can prevent it
> from happening again.
>
> Indeed. If you don't know that, I'm not sure that
> I'd trust the cluster
> enough to try to continue to work with it. I'd
> suggest dumping whatever
> databases you have individually with pg_dump
> (instead of using
> pg_dumpall) and then initdb and reload. Note that
> pg_dump alone won't
> save info about your users and groups, so make notes
> about those so you
> can re-create them by hand.

Thanks Tom and Michael for your answers. After a try
on a test server, I've applied your procedure Tom and
now it works perfectly well!

I could not figure out why template1 directory went
missing.

--
Marc



___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Felipe Giotto 2006-09-27 12:13:54 Backup & Restore
Previous Message pr0v4 2006-09-27 10:41:21 Re: pass date type data to PQexecparams