Re: Relocatable installs - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Relocatable installs
Date
Msg-id 200405082244.i48Mi9Y29386@candle.pha.pa.us
Whole thread Raw
In response to Re: Relocatable installs  ("Marc G. Fournier" <scrappy@postgresql.org>)
Responses Re: Relocatable installs  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: elein
Date:
Subject: Adding MERGE to the TODO list (resend with subject)
Next
From: Bruce Momjian
Date:
Subject: Re: Adding MERGE to the TODO list (resend with subject)