Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 872CE9F96E3; Fri, 10 Aug 2007 13:12:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 65553-04; Fri, 10 Aug 2007 13:12:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cerberus.lfix.co.uk (lfix.demon.co.uk [80.177.205.209]) by postgresql.org (Postfix) with ESMTP id C30589F96E5; Fri, 10 Aug 2007 13:12:07 -0300 (ADT) Received: from [192.168.8.1] by cerberus.lfix.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1IJX5m-0004gA-2X; Fri, 10 Aug 2007 17:12:02 +0100 Subject: Re: [NOVICE] Install two different versions of postgres which should run in parallel From: Oliver Elphick To: Loredana Curugiu Cc: pgsql-novice@postgresql.org, pgsql-sql@postgresql.org, pgsql-jdbc@postgresql.org In-Reply-To: <1c23c8e70708100433g4496040webeb53b44485bce7@mail.gmail.com> References: <1c23c8e70708100433g4496040webeb53b44485bce7@mail.gmail.com> Content-Type: text/plain Organization: LFIX Date: Fri, 10 Aug 2007 17:12:01 +0100 Message-Id: <1186762321.11237.225.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-LFIX-MailScanner-From: olly@lfix.co.uk X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.079 tagged_above=0 required=5 tests=AWL=0.264, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200708/55 X-Sequence-Number: 17368 On Fri, 2007-08-10 at 14:33 +0300, Loredana Curugiu wrote: > Hi all, > > I need to have two different vesions of postgres running in parallel > on > different ports. Does anyone knows how to install two different > versions > of postgres (7.4.5 and 8.2.4) on the same computer? I am using Linux > operating system. If you run Debian or Ubuntu you can do this with the package system. apt-get install postgresql-8.2 postgresql-7.4 The two versions are automatically installed to run on different ports. Look at the docs and manpages for the postgresql-common package to see how it works. If you can't do that, you can install a different version from source in a different directory tree; then have its postmaster run on a different port. Specify the port number when connecting so as to get to the postmaster you want. -- Oliver Elphick olly@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA ======================================== Do you want to know God? http://www.lfix.co.uk/knowing_god.html -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.