Re: [HACKERS] Better path-matching for package relocatability (was Re:

2005-12-21 Thread Bruce Momjian
Tom Lane wrote: > Well, more generally what we need is a better match algorithm in > make_relative_path. After a few moment's thought I propose: > > * Determine the common prefix of the compiled-in target_path and > bin_path (for typical cases this would be "/usr" or "/usr/local"; > worst case is

[HACKERS] Better path-matching for package relocatability (was Re: [BUGS] horology regression test failure)

2005-12-21 Thread Tom Lane
Martin Pitt <[EMAIL PROTECTED]> writes: > Tom Lane [2005-12-20 16:39 -0500]: >> We could doubtless improve make_relative_path to some extent, but the >> mess you have above seems impossible to deal with. How is a mere >> program supposed to deduce where things were moved to, given only >> knowledg