From: jason.christy@pnnl.gov
To: pgsql-bugs@postgresql.org
Subject: BUG #14298: service upgrade not setting ports
Date: Sat, 27 Aug 2016 07:11:42 +0000
Message-ID: <20160827071142.15674.42637@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14298
Logged by: Jason Christy
Email address: jason.christy@pnnl.gov
PostgreSQL version: 9.5.4
Operating system: Red Hat Enterprise 6
Description:
In /etc/init.d/postgresql-9.5, the upgrade section searches it's init.d
script for the "PGPORT" variable with the following:
# Get port number and data directory of the old instance from the init
script
OLDPGDATA=` sed -n 's/^PGDATA=//p'
/etc/init.d/postgresql-$PGPREVMAJORVERSION`
OLDPGPORT=`sed -n 's/^PGPORT=//p'
/etc/init.d/postgresql-$PGPREVMAJORVERSION`
# Get port number and data directory of the new instance from the init
script
NEWPGDATA=` sed -n 's/^PGDATA=//p' /etc/init.d/postgresql-$PGMAJORVERSION`
NEWPGPORT=`sed -n 's/^PGPORT=//p' /etc/init.d/postgresql-$PGMAJORVERSION`
1) The PGPORT variable is not set in /etc/init.d/postgresql-9.5
2) There is a comment in the init.d script:
# Version 9.4.0 Devrim Gunduz <devrim@gunduz.org>
# Remove PGPORT variable.
In order for me to "upgrade" postgresql from v9.4 to v9.5, I have to
manually run the pg_upgrade script.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: jason.christy@pnnl.gov
Subject: Re: BUG #14298: service upgrade not setting ports
In-Reply-To: <20160827071142.15674.42637@wrigleys.postgresql.org>
References: <20160827071142.15674.42637@wrigleys.postgresql.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