Re: Compiling to RPM setup/filesystem layout

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Gerald Gutierrez <gml1(at)coldresist(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Compiling to RPM setup/filesystem layout
Date: 2001-05-31 20:26:36
Message-ID: 01053116263608.00928@lowen.wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-ports

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 31 May 2001 15:59, Gerald Gutierrez wrote:
> I'm patiently waiting for the 7.1.2 RPMs to be released. Since there's no
> indication when they may be ready, I'd like to try compiling PostgreSQL
> myself.

Oooo... Saturday afternoon. I'm making a few changes to the build that I
need to test before releasing, so expect a release Saturday.

> Unfortunately, I can't just "compile" since I need to be able to replace my
> current 7.0.3 installation, installed via RPMs. How do I go about this so I
> don't mess everything up (leftover files and such, in addition to the
> mandatory pg_dump) ? Also, how do I ensure that when future RPMs come out,
> I can just use the RPMs and upgrade a compiled version?

If you want to go to a from source distribution, do the following:
pg_dumpall your whole database to somewhere other than /var/lib/pgsql.
rpm -qa|grep ^postgresql
rpm -e all-of-the-postgresql-rpms-you-found
rm -rf /var/lib/pgsql
Install from source into /usr/local/pgsql just like you want to.

If you have other RPM's that depend upon the PostgreSQL RPM's provides, then
you have a bigger problem. The easiest way to deal with that is waiting
until Saturday and downloading the new version.

But even then you need to do a full dump of your data!
- --
Lamar Owen
WGCR Internet Radio
1 Peter 4:11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7Fqj+5kGGI8vV9eERAmzRAKCfgPeJozqOc+nDLy4Ke91lo3IF2ACdHok+
fFTF2YHhSmNQ7wpUWr7LEZs=
=ufSj
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tauren Mills 2001-05-31 20:30:42 Alternate database locations
Previous Message Limin Liu 2001-05-31 20:24:12 extra syntax on INSERT

Browse pgsql-ports by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-31 20:47:32 Re: Compiling to RPM setup/filesystem layout
Previous Message Steve Wolfe 2001-05-31 20:22:47 Re: Compiling to RPM setup/filesystem layout