Re: Best way to install postgres? RPM/Source Code Build - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Best way to install postgres? RPM/Source Code Build
Date
Msg-id dcc563d10904281714g5707ade0rc2a6338a5b449b91@mail.gmail.com
Whole thread Raw
In response to Best way to install postgres? RPM/Source Code Build  (DM <dm.aeqa@gmail.com>)
List pgsql-admin
On Tue, Apr 28, 2009 at 6:00 PM, DM <dm.aeqa@gmail.com> wrote:
> Hi All,
> What is the best way to Install postgres database?
> We have installed (2) versions of the postgres on th server using source
> code (compiling and building) (/usr/local/pgsql/8.3.3/ and
> /usr/local/pgsql/8.3.6/) and our data directory is (/mnt/data/pgsql/)
> Our database size is more than 100GB. Currently we are running 8.3.6. When
> we upgraded from 8.3.3 to 8.3.6, we pointed the data directory of 8.3.3 to
> 8.3.6.
> Ops team want to install postgres as (usr/local/bin) using RPM, and want to
> keep the data directory under (/var/lib/data/pgsql) and they say that we
> cannot have two versions at the same time using RPM.
> They say that red hat standard is to install all binaries of the database
> under /usr/local/bin and by using RPM only.
> What is the best way to install postgres? Is it by RPM or using Source code
> (Build). Could postgres experts comment on this please.

If you need > 1 version at the same time on the same machine with
rpms, then source code is preferred.  If you're running a debian or
debian derived OS (ubuntu etc) then you CAN have > 1 version, but only
major versions.  i.e. 8.2.11 and 8.3.7, but not 8.3.3 and 8.3.7.  But
there's not usually a great need for > 1 minor version so no great
loss.

On in house testing servers it can be handy to have multiple minor
versions for testing, and in that case installing from source is
preferred.  For big production machines, you should already have a
plan in place for upgrading so that you usually don't need multiple
minor or even major versions there.

Performance wise there's no real difference.

pgsql-admin by date:

Previous
From: John R Pierce
Date:
Subject: Re: [GENERAL] Best way to install postgres? RPM/Source Code Build
Next
From: Scott Marlowe
Date:
Subject: Re: [GENERAL] Best way to install postgres? RPM/Source Code Build