pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim Gündüz <devrim@gunduz.org>
To: Poul Kristensen <bcc5226@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Date: Wed, 28 Sep 2016 13:27:49 +0300
Message-ID: <1475058469.24885.34.camel@gunduz.org> (raw)
In-Reply-To: <CAAOuvVpLi_-S=rOD09PrLbV2exmdorcio8Vksa07QtH7YwkQYw@mail.gmail.com>
References: <CAAOuvVpLi_-S=rOD09PrLbV2exmdorcio8Vksa07QtH7YwkQYw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


Hi,

On Tue, 2016-09-27 at 10:08 +0200, Poul Kristensen wrote:
> 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.
> 
> How come and how do I change this?

If you installed Postgres from Red Hat repos (likely), then change the port
number in unit file for the second instance. The recommended way is copying the
unit file under /etc/systemd/system/ and modify from there.

If you installed from PGDG repos, then changing port from postgresql.conf is
sufficient.

Regards,
-- 
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (9+ messages)  latest in thread

Message-ID: <1475058469.24885.34.camel@gunduz.org>
Permalink:  ../1475058469.24885.34.camel@gunduz.org/
Also on:    postgresql.org/message-id/1475058469.24885.34.camel@gunduz.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: devrim@gunduz.org, bcc5226@gmail.com
  Subject: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
  In-Reply-To: <1475058469.24885.34.camel@gunduz.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox