Re: Multiple versions on same box

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Reece Hart" <reece(at)harts(dot)net>
Cc: "Ralph Smith" <smithrn(at)u(dot)washington(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple versions on same box
Date: 2007-10-09 08:19:36
Message-ID: dcc563d10710090119u78d2e8cx1bdbf33af2a80840@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/9/07, Reece Hart <reece(at)harts(dot)net> wrote:
>
> On Mon, 2007-10-08 at 17:34 -0700, Ralph Smith wrote:
>
> What is the best way to upgrade? Use pg_dumpall (using 8.2's program),
> afterwards redirect that file into v8.2 via psql v8.2?
>
>
> There are lots of ways to do this. My favorite is to bring a new cluster
> on port 5433 and then pipe data between them, roughly like this:
>
> $ /path/to/7.4/pg_dumpall -p5432 ... | /path/to/8.2/psql -p5433 -qaf- >
> restore.log 2>&1
>

Note that when possible you should dump with the pg_dump/pg_dumpall of the
version you're going to, in this case 8.2's pg_dumpall

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Poslusny 2007-10-09 09:28:46 foreign keys and memory consumption
Previous Message Bima Djaloeis 2007-10-09 07:51:51 Re: starting a stored procedure+rule AFTER an insert