Re: Is it possible to control the location of the lock file when starting postgres? - Mailing list pgsql-general

From John R Pierce
Subject Re: Is it possible to control the location of the lock file when starting postgres?
Date
Msg-id 08778441-6717-ec3b-869c-1914035a02f5@hogranch.com
Whole thread Raw
In response to Re: Is it possible to control the location of the lock file when starting postgres?  (Steve Langlois <steve.langlois@tavve.com>)
List pgsql-general
On 7/20/2016 5:12 PM, Steve Langlois wrote:
Then I try to run psql and 

[20:01:11 slanglois@tron bin]$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432”?

I would expect local all all trust to allow me to connect.

did you read the error?  do you note that there is nothing there about authentication?  in fact, psql was completely unabl eot connect to the server, since its domain socket is not IN /var/run/postgresql/  since you moved it to /tmp

you can override the path to do the domain socket with -h, like

    psql -h /tmp



-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Steve Langlois
Date:
Subject: Re: Is it possible to control the location of the lock file when starting postgres?
Next
From: rob stone
Date:
Subject: Re: Is it possible to control the location of the lock file when starting postgres?