Migrating from 7.0RC1 to 7.0.2 and initdb

From: Guillaume Perréal <perreal(at)lyon(dot)cemagref(dot)fr>
To: pgsql-general(at)postgresql(dot)org
Subject: Migrating from 7.0RC1 to 7.0.2 and initdb
Date: 2000-07-20 11:53:24
Message-ID: 3976E834.2F7D740C@lyon.cemagref.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello.

A few days ago, I tried to migrate from v7.0RC1 to 7.0.2. Since major version
number doesn't change, I just stopped postmaster, installed the new RPM (I work
under Redhat 6.1) and started the new postmaster.
I got an error such as 'System catalog version changed, you should use initdb'.
Well, I watched at initdb manpage, and then tried:
initdb --template
This should just rebuild template1 and don't delete anything. But:
[Error...]
Removing /var/lib/pgsql...
Argh!!

One restoration later, I used initdb --template --noclean and it appeared that
the file pg_control must be deleted before using initdb...

And postgresql-backup didn't accept to do a backup because of the version
number.

Two questions?
1) Why --noclean isn't implicit?
2) Why initdb doesn't delete pg_control automatically (at least ask for
deletion) when needed instead of returning an error and burning all the
databases ?

Regards.

Guillaume Perréal - Stagiaire MIAG
Cemagref (URH), Lyon, France
Tél: (+33) 4.72.20.87.64

Browse pgsql-general by date

  From Date Subject
Next Message Dave Smith 2000-07-20 12:16:24 Re: Return PGresult
Previous Message Dave Smith 2000-07-20 11:51:27 Re: Return PGresult