Re: converting older databases

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Heine Ferreira <heine(dot)ferreira(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: converting older databases
Date: 2009-03-05 18:58:03
Message-ID: 49B020BB.7050003@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Heine Ferreira wrote:
> Hi
>
> When you install a newer version of Postgres how do you upgrade your
> database to the new format?
> Apparantly you can't just backup the old database and restore it on
> the new software.
> How do you do this on Windows?

you pg_dump >dumpfile.sql the old one, psql -f dumpfile.sql to the new.

Typically, you only need to do this between major upgrades, like 8.2.x
to 8.3.y ... 8.3.x to 8.3.y doesn't require a dump/restore unless the
release notes state otherwise (this has only happened a few times, I
think there was a 8.0.1->8.0.N that required it due to a minor change
required by a bugfix)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2009-03-05 18:58:04 Re: Custom datestyle for timestamps
Previous Message Tom Lane 2009-03-05 18:56:45 Re: Problem with SSL: "could not accept SSL connection: EOF detected"