But in both of the machines I have the same os and I used the same repository - postgresql rpm repository. The only difference is that in machine 2 I also installed all pg 9.6 packages. Even When I try to use /usr/pgsql-9.2/bin/psql the psql still tries to access the /var/run/run/postgresql dir as the socket dir. Does those packages include a different libpq ? What postgres package change the libpq ?
בתאריך יום ד׳, 9 בינו׳ 2019 ב-17:13 מאת Jeff Janes < jeff.ja...@gmail.com>: > On Wed, Jan 9, 2019 at 10:09 AM Mariel Cherkassky < > mariel.cherkas...@gmail.com> wrote: > >> Hey Tom, >> I'm aware of how I can solve it. I wanted to understand why after >> installing the pg 9.6 packages suddenly psql tries to access the socket on >> /var/run/postgresql. Does the libpq default unix socket is changed between >> those two versions ? (9.6,9.2) >> > > It is not a version issue, but a packaging issue. Different systems have > different conventions on where sockets should go, and the packager imposes > their opinion on the things they package. > > Cheers, > > Jeff >