Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YZuNW-0005e7-Vq for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2015 04:54:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YZuNW-0006AK-Ea for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2015 04:54:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZuNU-00067Y-N8 for pgsql-admin@postgresql.org; Mon, 23 Mar 2015 04:54:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZuNR-0000QG-FQ for pgsql-admin@postgresql.org; Mon, 23 Mar 2015 04:54:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t2N4sBI5013190; Mon, 23 Mar 2015 00:54:11 -0400 From: Tom Lane To: Scott Ribe cc: Postgres Maillist Subject: Re: unix socket location confusion In-reply-to: <5600A100-C4A4-427D-938E-9FFDDBE87132@elevated-dev.com> References: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com> <3184.1427063304@sss.pgh.pa.us> <3533.1427064190@sss.pgh.pa.us> <5600A100-C4A4-427D-938E-9FFDDBE87132@elevated-dev.com> Comments: In-reply-to Scott Ribe message dated "Sun, 22 Mar 2015 17:26:27 -0600" Date: Mon, 23 Mar 2015 00:54:11 -0400 Message-ID: <13189.1427086451@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Scott Ribe writes: > On Mar 22, 2015, at 4:43 PM, Tom Lane 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 ;-) Uh huh :-( > It's questionable whether the PG executables should be built with full or relative paths to the libs, both have their own disadvantages. But might be worth considering --relative-rpath someday? Or an option to link the frickin' static libraries in and avoid the whole issue of mismatches. We're entirely at the mercy of the platform's dynamic loader when it comes to things like this. I don't think I trust Darwin's loader with relative paths; though come to think of it, Linux's loader may be no better. Way too many opportunities to screw up there. As for static libraries, there are good reasons why those aren't superior solutions. Red Hat for instance has a blanket policy against shipping static libraries (with only very narrow exceptions), and I believe the same is true of many other vendors. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin