Re: Issue with postgresql-9.4 init.d script - Mailing list pgsql-pkg-yum

From Hima Mahi
Subject Re: Issue with postgresql-9.4 init.d script
Date
Msg-id CAEHY2386G6GFcCM-PUmqmFRfSugTX0uv-b9oZTK0DnC-7w55=g@mail.gmail.com
Whole thread Raw
In response to Re: Issue with postgresql-9.4 init.d script  (Jeff Frost <jeff@pgexperts.com>)
Responses Re: Issue with postgresql-9.4 init.d script  (Devrim GÜNDÜZ <devrim@gunduz.org>)
List pgsql-pkg-yum
The issue is if some other application has set PGPORT in environment variable, it reads that. It doesn't check the port mentioned in postgresql.conf. 
For example in my case, We have PostgresPlus advanced server setup on some port and this variable is set. Now , postgresql 9.4 is reading that variable and not the port mentioned in postgresql.conf. Thus , server start fails.

On Thu, Aug 20, 2015 at 8:04 PM, Jeff Frost <jeff@pgexperts.com> wrote:

On Aug 20, 2015, at 4:06 AM, Hima Mahi <himamahi09@gmail.com> wrote:

Earlier in 9.2 version, init.d script was exporting and using PGPORT for db server start. In 9.4 that option has been removed. It creates issue in case if some other PGPORT variable is set to some value. Then it uses thats value and fails to start.

I think our opinion with that change was that people should be setting the port in the postgresql.conf file.


pgsql-pkg-yum by date:

Previous
From: Hima Mahi
Date:
Subject: Re: Issue with postgresql-9.4 init.d script
Next
From: Andomar
Date:
Subject: Re: Pgbouncer 1.6