Re: Best way to install postgres? RPM/Source Code Build

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: DM <dm(dot)aeqa(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Best way to install postgres? RPM/Source Code Build
Date: 2009-04-29 00:14:09
Message-ID: dcc563d10904281714g5707ade0rc2a6338a5b449b91@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Tue, Apr 28, 2009 at 6:00 PM, DM <dm(dot)aeqa(at)gmail(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2009-04-29 00:15:28 Re: [GENERAL] Best way to install postgres? RPM/Source Code Build
Previous Message John R Pierce 2009-04-29 00:08:32 Re: [GENERAL] Best way to install postgres? RPM/Source Code Build

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-04-29 00:15:28 Re: [GENERAL] Best way to install postgres? RPM/Source Code Build
Previous Message John R Pierce 2009-04-29 00:08:32 Re: [GENERAL] Best way to install postgres? RPM/Source Code Build