Re: unix socket location confusion - Mailing list pgsql-admin

From Scott Ribe
Subject Re: unix socket location confusion
Date
Msg-id 5600A100-C4A4-427D-938E-9FFDDBE87132@elevated-dev.com
Whole thread Raw
In response to Re: unix socket location confusion  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: unix socket location confusion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
On Mar 22, 2015, at 4:43 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> So this works only if your libpq.dylib is actually installed at the
> location that was expected when you built it.  The recipe you gave
> looks like it should have done that, but I'm suspicious that the
> answer is somewhere near here.

Oh, take me out back and shoot me now ;-)

The one step I left out of my description of the process was the one immediately after make install where I decided I
didnot like the name of the folder I had built into, and re-named it. I am surprised though, that with a full path to
libpq,when that path does not exist, the loader searches and finds a system lib instead of just failing. 

It's questionable whether the PG executables should be built with full or relative paths to the libs, both have their
owndisadvantages. But might be worth considering --relative-rpath someday? Or an option to link the frickin' static
librariesin and avoid the whole issue of mismatches. 

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: unix socket location confusion
Next
From: Tom Lane
Date:
Subject: Re: unix socket location confusion