Re: error on connecting port 5432 - Mailing list pgsql-general

From David G. Johnston
Subject Re: error on connecting port 5432
Date
Msg-id CAKFQuwbW64C+q=2FPv8Ey6nBsG51Dx3b2Qw62egLRPy1PQp4qA@mail.gmail.com
Whole thread Raw
In response to Re: error on connecting port 5432  (Atul Kumar <akumar14871@gmail.com>)
List pgsql-general
On Wednesday, December 2, 2020, Atul Kumar <akumar14871@gmail.com> wrote:
Thanks a lot Tom, I appended the -h /tmp and it worked.

I need just one more help from you.

Could you tell me that why & how that socket file existed in /tmp directory.

Because the server was configured that way:


See: unix_socket_directories

Thing is, the client code doesn’t read the postgresql.conf configuration file - it just knows its own compile-time default.  For some reason, your client in one mode was compiled using a different default than the server on the same machine. From which we infer you have two client installs on your machine, each compiled using different defaults.

David J.

pgsql-general by date:

Previous
From: Andreas Schmitz
Date:
Subject: Re: error on connecting port 5432
Next
From: Levente Birta
Date:
Subject: pg_cron question