Re: Relocatable installs

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Relocatable installs
Date: 2004-05-18 23:32:36
Message-ID: 40AA9D14.5050906@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
> Peter Eisentraut wrote:
>> Jan Wieck wrote:
>> > Boy, nobody was suggesting 100% static linking. What kind of madness
>> > are you getting into if you link libpq.a into psql? There is
>> > something between all or nothing, isn't there?
>>
>> It's not going to be only psql and libpq. The next thing is, someone
>> wants to have a relocatable libpqxx, or a relocatable PHP, or a
>> relocatable MyCoolReplicationSystem. Before you know it, half the
>> world has the other half of the world statically linked. This can't be
>> the solution.
>
> So your opinion is that we need to just require some user configuration
> changes to find the shared libs, right?
>

Peter is mixing issues here. How another application finds the right
libpq.so, libpqxx.so or whatever interface lib after someone moved the
PostgreSQL lib directory somewhere else has absolutely nothing to do
with how we make sure that our binary utilities like initdb, psql and so
forth are protected against using the wrong one in a multi-version
relocatable environment.

And that some platforms support relative rpath is nice handwaving, but
it doesn't get us anywhere.

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-19 00:24:31 Re: XactIsoLevel handling
Previous Message Joshua D. Drake 2004-05-18 22:29:30 Re: Call for 7.5 feature completion