Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdPV-00052x-R0 for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 20:13:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXdPV-0004Sg-BC for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 20:13:53 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdPU-0004Sb-KL for pgsql-admin@postgresql.org; Wed, 01 May 2013 20:13:52 +0000 Received: from [64.207.29.137] (helo=mail.illumen.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdPQ-00058w-K6 for pgsql-admin@postgresql.org; Wed, 01 May 2013 20:13:51 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Installing multiple instances of Postgred on one FreeBSD server Date: Wed, 1 May 2013 14:13:47 -0600 Message-ID: In-Reply-To: <20130501200835.GN27807@aart.rice.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Installing multiple instances of Postgred on one FreeBSD server Thread-Index: Ac5Gp6th+l+8F9MxRSSDjCijFuNJ5wAABoug References: <20130501200835.GN27807@aart.rice.edu> From: "Benjamin Krajmalnik" To: Cc: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.207.29.137 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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@rice.edu [mailto:ktm@rice.edu]=20 Sent: Wednesday, May 01, 2013 2:09 PM To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.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=20 > 9.2. >=20 > Running FreeBSD 8.1/amd64, and presently running Postgres 9.0.4. >=20 > Due to the nature of the application, I cannot have any considerable=20 > downtime, so the pg_dump and install new version route is not an option. >=20 > I would like to install PG 9.2 on the same server and use Slony to=20 > replicate the databases, and once everything is up take the 9.0=20 > cluster down. >=20 > Ideally, I would like to do this from the ports. >=20 > Any suggestions will be deeply appreciated. >=20 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 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin