From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Postgres Maillist <pgsql-admin@postgresql.org>
Subject: unix socket location confusion
Date: Sun, 22 Mar 2015 14:33:24 -0600
Message-ID: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
- on OS X 10.10.2
- downloaded 9.3.6 sources
- ./configure --with-openssl --prefix=/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 postgresql.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 build, thanks to Apple's tools using a search path that led outside the build for the libs???
I know how to specify things the way I want, but I thought I'd bring this up because there's a whole ton of confusion on StackOverflow about this issue, with a lot of bad guessing going on. I built from straight-up sources, and 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 before.)
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com
Subject: Re: unix socket location confusion
In-Reply-To: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com>
References: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox