Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Scott Whitney <scott(at)journyx(dot)com>, Poul Kristensen <bcc5226(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Date: 2016-09-27 16:08:29
Message-ID: 12760.1474992509@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> your suggested procedure seems sound ... in a pre-systemd world. I am
> not familiar with systemd enough to know what, if anything, should be
> done differently there (I don't know whether RHEL 7.2 is systemd or
> not).

RHEL7 is systemd. It's been several years since I touched those packages,
but I have some vague recollection that the systemd unit files for PG
insist on setting the port for themselves, overriding whatever you might
put into postgresql.conf. So you'd need to make a second unit file and
adjust the port setting in it.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Devrim Gündüz 2016-09-28 10:27:49 Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Previous Message Scott Mead 2016-09-27 15:16:27 Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433