Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdVt-0005Uy-Gk for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 20:20:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXdVt-0006bj-18 for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 20:20:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdVs-0006be-DE for pgsql-admin@postgresql.org; Wed, 01 May 2013 20:20:28 +0000 Received: from mail2.reptiles.org ([198.96.210.226]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXdVo-0003Mj-Gq for pgsql-admin@postgresql.org; Wed, 01 May 2013 20:20:28 +0000 Received: from localhost by mailbox.reptiles.org via sendmail with STDIO (1571 bytes) (sender: ) (ident using UNIX) id for ; Wed, 1 May 2013 16:20:22 -0400 (EDT) (Smail-3.2.0.121 2005-Nov-17 #10 built 2010-Jul-16) Date: Wed, 1 May 2013 16:20:22 -0400 From: Jim Mercer To: Benjamin Krajmalnik Cc: pgsql-admin@postgresql.org Subject: Re: Installing multiple instances of Postgred on one FreeBSD server Message-ID: <20130501202021.GA36302@reptiles.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -4.5 (----) 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 On Wed, May 01, 2013 at 01:58:21PM -0600, Benjamin Krajmalnik wrote: > 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. allocate a new ip to the server. reconfigure/restart 9.0 to listen on the main IP (not "all" as default) use ezjail to create a freebsd jail on thenew IP install 9.2 in the jail treat it them as two servers. point clients at new ip. once migrated, delete all 9.0 from the main server. if you need to upgrade again, add another jail. stop and delete the old jail whe the next upgrade is complete. repeat as often as you want to upgrade. i'm pretty sure this can be adapted to linux, but i forget what their jail equivilent is. the overhead is minimal -- Jim Mercer Reptilian Research jim@reptiles.org +1 416 410-5633 "He who dies with the most toys is nonetheless dead" -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin