Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433 - Mailing list pgsql-admin

From Scott Mead
Subject Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Date
Msg-id CAKq0gvL-jahD+WwwRbJvPvo3J-XRAJnfcCowxHytXEeEV2zO-g@mail.gmail.com
Whole thread Raw
In response to /var/run/postgresql/.s.PGSQL.5432 should be 5433  (Poul Kristensen <bcc5226@gmail.com>)
List pgsql-admin


On Tue, Sep 27, 2016 at 4:08 AM, Poul Kristensen <bcc5226@gmail.com> wrote:
Hi !

I have need to have to difference Postgres version runnung on the same RHEL 7.2 server.

They are listening on 2 different ports as configured but socket is still listening
on  port 5432 for  both of them.

1. What version of postgres?
2. Where did you get your binaries from ? PGDG, etc...

In your postgresql.conf for each instance, what do you have for:

listen_addresses=?
port=?
unix_socket_directories=?


Most likely, the second instance you created has the socket in /tmp/, whereas the one created by the RPMs has the socket in /tmp AND /var/run/postgresql

--Scott

 

How come and how do I change this?

TIA

Poul 




--
--
Scott Mead
Sr. Architect
OpenSCG

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Next
From: Tom Lane
Date:
Subject: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433