Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YZmZ8-0005YD-6U for pgsql-admin@arkaria.postgresql.org; Sun, 22 Mar 2015 20:33:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YZmZ7-00011r-CS for pgsql-admin@arkaria.postgresql.org; Sun, 22 Mar 2015 20:33:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZmZ5-00011S-9Q for pgsql-admin@postgresql.org; Sun, 22 Mar 2015 20:33:43 +0000 Received: from mailout.easymail.ca ([64.68.201.169]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YZmYx-0001BL-03 for pgsql-admin@postgresql.org; Sun, 22 Mar 2015 20:33:41 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 92FB9E35A for ; Sun, 22 Mar 2015 16:33:30 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Flag: NO X-Spam-Score: -3.94 X-Spam-Level: X-Spam-Status: No, score=-3.94 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.233, BAYES_00=-2.599, DNS_FROM_AHBL_RHSBL=0.692] Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 63oT0RrQsnX2 for ; Sun, 22 Mar 2015 16:33:27 -0400 (EDT) Received: from [192.168.2.16] (unknown [8.39.228.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 1B0F2E301 for ; Sun, 22 Mar 2015 16:33:27 -0400 (EDT) From: Scott Ribe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: unix socket location confusion Message-Id: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com> Date: Sun, 22 Mar 2015 14:33:24 -0600 To: Postgres Maillist Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-Pg-Spam-Score: -2.6 (--) 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 - on OS X 10.10.2 - downloaded 9.3.6 sources - ./configure --with-openssl --prefix=3D/my/specific/location/pg-9.3 - make & install - cd /my/specific/location/ - pg-9.3/bin/postmaster -D... - socket is created in /tmp, as expected - pg-9.3/bin/psql mydb - gives error about not being able to connect to /var/pgsql_socket/.s.PGSQL= .5432 - ??? env shows that I have no PG-related environment variables set; existing pos= tgresql.conf in the data dir does not specify unix_directories, leaving it = at the default /tmp. So why is the freshly-built psql trying to check /var/pgsql_socket/ instead= of /tmp? Did it perhaps get linked to a client dylib from a different buil= d, thanks to Apple's tools using a search path that led outside the build f= or the libs??? I know how to specify things the way I want, but I thought I'd bring this u= p because there's a whole ton of confusion on StackOverflow about this issu= e, with a lot of bad guessing going on. I built from straight-up sources, a= nd I'm specifying the paths to the specific executables I want to run, and = still seeing the problem. (And, FWIW, I've long had multiple versions of PG= built on my system for different projects, and never seen this problem bef= ore.) --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin