From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: two versions on same linux
Date: Fri, 21 May 2004 08:19:53 -0400
Message-ID: <m3ekpeas5y.fsf@wolfe.cbbrowne.com> (raw)
References: <001001c43f03$476e9de0$3410fea9@zoom>
A long time ago, in a galaxy far, far away, pgimpelj@sympatico.ca ("Paul Gimpelj") wrote:
> I have redhat 7.3 and postgres 7.2
>
> Is there a way to have 7.4 installed together with postgres 7.2 ? and both running at the same time,
>
> with of course different data directories.
>
> should i use the generic postgres or the rpm'd.
Presumably the respective RPMs will conflict between the different
versions, which is a bit of a problem.
You could of course install one or the other or even both from source,
as long as you choose a specific place to stick them.
Under the circumstances, I'd be inclined to do this:
- Install the PG 7.4 RPMs, in order to have things like Perl support
managed by the package management system.
Personally, I'd rather stick hot needles in my eyes (add further
gruesome details as needed ;-)) than manage Perl stuff by hand.
- Install PG 7.2 AND 7.4 in source code form in some place that YOU
manage, and run the database clusters out of that.
A naming convention could be to stick them in /opt; you'd configure
the source builds something like:
%postgresql-7.2.5> ./configure --prefix=/opt/postgres/7.2.5
[then build and install 7.2.5]
%postgresql-7.4.2> ./configure --prefix=/opt/postgres/7.4.2
[then build and install 7.4.2]
You'd need to customize both "init" scripts in /etc/rc.d, perhaps
basing them on the ones provided by the RPM file.
> The existing redhat has no passwords for postgres, and even if if
> assign one to user postgres,
>
> postgres ignores it.
That's probably based on the ACLs configured in the pg_hba.conf file;
if there are "trust" entries there, passwords can get ignored...
--
(reverse (concatenate 'string "gro.mca" "@" "enworbbc"))
http://www.ntlug.org/~cbbrowne/emacs.html
"We live in a Newtonian world of Einsteinian physics ruled by
Frankenstein logic." -- David Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: cbbrowne@acm.org
Subject: Re: two versions on same linux
In-Reply-To: <m3ekpeas5y.fsf@wolfe.cbbrowne.com>
References: <001001c43f03$476e9de0$3410fea9@zoom> <m3ekpeas5y.fsf@wolfe.cbbrowne.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox