Re: Installing multiple instances of Postgred on one FreeBSD server

From: "Benjamin Krajmalnik" <kraj(at)servoyant(dot)com>
To: <ktm(at)rice(dot)edu>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Installing multiple instances of Postgred on one FreeBSD server
Date: 2013-05-01 20:13:47
Message-ID: F4E6A2751A2823418A21D4A160B6898892BCE1@fletch.stackdump.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

This box is one which has a cluster as a hot standby via streaming
replication, so I need to keep it alive because it is used as a
read-only cluster.
The intent is to replicate it to 9.2 via Slony and then make it the
master while we upgrade the other server, which will then become the
slave.
I need to run the process in a lab environment first, of course, but the
problem right now is how to get the 2 clusters running on the same
server, preferably using the ports system.

-----Original Message-----
From: ktm(at)rice(dot)edu [mailto:ktm(at)rice(dot)edu]
Sent: Wednesday, May 01, 2013 2:09 PM
To: Benjamin Krajmalnik
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Installing multiple instances of Postgred on one
FreeBSD server

On Wed, May 01, 2013 at 01:58:21PM -0600, Benjamin Krajmalnik wrote:
> I need to migrate a production database from Postgres 9.0 to Postgres
> 9.2.
>
> Running FreeBSD 8.1/amd64, and presently running Postgres 9.0.4.
>
> Due to the nature of the application, I cannot have any considerable
> downtime, so the pg_dump and install new version route is not an
option.
>
> I would like to install PG 9.2 on the same server and use Slony to
> replicate the databases, and once everything is up take the 9.0
> cluster down.
>
> Ideally, I would like to do this from the ports.
>
> Any suggestions will be deeply appreciated.
>

Hi Benjamin,

Using Slony will definitely work. We have used it many times for this
type of upgrade. Since you are on the same box, have you considered
using pg_upgrade?

Regards,
Ken

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Mercer 2013-05-01 20:20:22 Re: Installing multiple instances of Postgred on one FreeBSD server
Previous Message ktm@rice.edu 2013-05-01 20:08:35 Re: Installing multiple instances of Postgred on one FreeBSD server