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

From: John R Pierce <pierce(at)hogranch(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: [GENERAL] Best way to install postgres? RPM/Source Code Build
Date: 2009-04-29 00:08:32
Message-ID: 49F79A80.5050906@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

DM 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.

actually, the redhat RPM standard is to intsall the binaries in /usr/bin
and libraries in /usr/lib and so forth, and the postgres data is in
/var/lib/pgsql/data ....

however, if you build your own RPMs, you can build it any way you
want. upgrading 8.3.x to 8.3.y generally does NOT require any sort of
dump/restore, just stop the server, upgrade the binaries, restart the
server and move on.

I for one use the PGDG yum rpm repository, and install the 8.3 on top of
the default rhel/centos 4 or 5 binaries. the repository includes a
compatibility library which satisfies RPM dependencies on the original
RHEL versions of the libpq.so ...

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2009-04-29 00:14:09 Re: Best way to install postgres? RPM/Source Code Build
Previous Message DM 2009-04-29 00:00:25 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:14:09 Re: Best way to install postgres? RPM/Source Code Build
Previous Message DM 2009-04-29 00:00:25 Best way to install postgres? RPM/Source Code Build