Re: Relocatable installs

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Relocatable installs
Date: 2004-05-08 22:44:09
Message-ID: 200405082244.i48Mi9Y29386@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marc G. Fournier wrote:
> > However, right now, if you try to move /usr/local/pgsql to /var/pgsql,
> > the database will not work because there are hard-coded directory
> > dependencies in the binaries:
> >
> > initdb has to find its *.bki files in /share
> > initdb has to find the postgres binary in /bin
> > pg_dumpall has to find pg_dump
> > postgres has to find shared objects the /lib
> > Win32 postgres has to find /share/timezone
> >
> > Maybe there are more.
>
> Is there a reason why we can't use a PGSQL_PREFIX ENV variable or
> something like that? If not defined, use compiled in default?

Win32 isn't going to be able to define that. Also, why not make it
relocatable by default? We already know where the binary is.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-05-08 22:46:29 Re: Adding MERGE to the TODO list (resend with subject)
Previous Message elein 2004-05-08 21:37:08 Adding MERGE to the TODO list (resend with subject)