Re: could not find /usr/local/timezone - Mailing list pgsql-bugs

From Tom Lane
Subject Re: could not find /usr/local/timezone
Date
Msg-id 19792.1099623786@sss.pgh.pa.us
Whole thread Raw
In response to Re: could not find /usr/local/timezone  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> This is fundamentally broken by the changes to support relocatable
>> installs: PG now attempts to find the support files by relative paths
>> from the place where the executable was found.

> I recall that on some systems the "normal" method of installation is
> installing everything in private directory trees and then symlinking
> the relevant parts to shared locations.  Also, sites using AFS file
> systems do things of that kind.  I hope these systems aren't going to
> be broken completely.

[ itch... ]  Maybe we had better do something about chasing symlinks,
then.  ISTM that find_my_exec could resolve a symbolic link down to the
actual executable, and then we could assume that the support files are
located relative to that.  I was worried about portability but it looks
like lstat() and readlink() are defined in the Single Unix Spec ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: could not find /usr/local/timezone
Next
From: Markus Bertheau
Date:
Subject: pg_ctl telling only half the truth