Mariel Cherkassky <mariel.cherkassky@xxxxxxxxx> writes: > 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 ? "rpm -ql" would tell you about which packages supply what. Assuming there's more than one libpq.so on your machine, which it sounds like there is, which one gets used depends on the dynamic linker's configuration -- see /etc/ld.so.conf and "man ldconfig". regards, tom lane