pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14298: service upgrade not setting ports
6+ messages / 4 participants
[nested] [flat]

* BUG #14298: service upgrade not setting ports
@ 2016-08-27 07:11 jason.christy@pnnl.gov
  2016-08-29 18:45 ` Re: BUG #14298: service upgrade not setting ports Bruce Momjian <bruce@momjian.us>
  2016-08-29 19:00 ` Re: BUG #14298: service upgrade not setting ports Devrim Gündüz <devrim@gunduz.org>
  0 siblings, 2 replies; 6+ messages in thread

From: jason.christy@pnnl.gov @ 2016-08-27 07:11 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14298: service upgrade not setting ports
  2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
@ 2016-08-29 18:45 ` Bruce Momjian <bruce@momjian.us>
  2016-08-29 18:49   ` Re: BUG #14298: service upgrade not setting ports Christy, Jason E <Jason.Christy@pnnl.gov>
  1 sibling, 1 reply; 6+ messages in thread

From: Bruce Momjian @ 2016-08-29 18:45 UTC (permalink / raw)
  To: jason.christy@pnnl.gov; +Cc: pgsql-bugs

On Sat, Aug 27, 2016 at 07:11:42AM +0000, jason.christy@pnnl.gov wrote:
> 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:

We did not create that startup script so I suggest you contact the place
you got the Postgres package.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14298: service upgrade not setting ports
  2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
  2016-08-29 18:45 ` Re: BUG #14298: service upgrade not setting ports Bruce Momjian <bruce@momjian.us>
@ 2016-08-29 18:49   ` Christy, Jason E <Jason.Christy@pnnl.gov>
  0 siblings, 0 replies; 6+ messages in thread

From: Christy, Jason E @ 2016-08-29 18:49 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs

Hi,

Good to know. I will reach out to Red Hat.

Thank you very much for the quick response!

-Jason

-----Original Message-----
From: Bruce Momjian [mailto:bruce@momjian.us] 
Sent: Monday, August 29, 2016 11:45 AM
To: Christy, Jason E
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14298: service upgrade not setting ports

On Sat, Aug 27, 2016 at 07:11:42AM +0000, jason.christy@pnnl.gov wrote:
> 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:

We did not create that startup script so I suggest you contact the place
you got the Postgres package.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14298: service upgrade not setting ports
  2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
@ 2016-08-29 19:00 ` Devrim Gündüz <devrim@gunduz.org>
  2016-08-29 19:12   ` Re: BUG #14298: service upgrade not setting ports Christy, Jason E <Jason.Christy@pnnl.gov>
  1 sibling, 1 reply; 6+ messages in thread

From: Devrim Gündüz @ 2016-08-29 19:00 UTC (permalink / raw)
  To: jason.christy@pnnl.gov; pgsql-bugs


Hi,

On Sat, 2016-08-27 at 07:11 +0000, jason.christy@pnnl.gov wrote:
> 
> 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:

<snip>

> In order for me to "upgrade" postgresql from v9.4 to v9.5, I have to
> manually run the pg_upgrade script.

That code has been broken forever :-( Patches welcome :/

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

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14298: service upgrade not setting ports
  2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
  2016-08-29 19:00 ` Re: BUG #14298: service upgrade not setting ports Devrim Gündüz <devrim@gunduz.org>
@ 2016-08-29 19:12   ` Christy, Jason E <Jason.Christy@pnnl.gov>
  2016-08-30 08:32     ` Re: BUG #14298: service upgrade not setting ports Devrim Gündüz <devrim@gunduz.org>
  0 siblings, 1 reply; 6+ messages in thread

From: Christy, Jason E @ 2016-08-29 19:12 UTC (permalink / raw)
  To: Devrim Gündüz <devrim@gunduz.org>; pgsql-bugs

Hi,

It turns out I downloaded the rpm from the following url:
https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.8-x86_64/

Do you package the rpms? If not, who does?

Thank you,
Jason

-----Original Message-----
From: Devrim Gündüz [mailto:devrim@gunduz.org] 
Sent: Monday, August 29, 2016 12:00 PM
To: Christy, Jason E; pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14298: service upgrade not setting ports


Hi,

On Sat, 2016-08-27 at 07:11 +0000, jason.christy@pnnl.gov wrote:
> 
> 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:

<snip>

> In order for me to "upgrade" postgresql from v9.4 to v9.5, I have to
> manually run the pg_upgrade script.

That code has been broken forever :-( Patches welcome :/

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

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14298: service upgrade not setting ports
  2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
  2016-08-29 19:00 ` Re: BUG #14298: service upgrade not setting ports Devrim Gündüz <devrim@gunduz.org>
  2016-08-29 19:12   ` Re: BUG #14298: service upgrade not setting ports Christy, Jason E <Jason.Christy@pnnl.gov>
@ 2016-08-30 08:32     ` Devrim Gündüz <devrim@gunduz.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Devrim Gündüz @ 2016-08-30 08:32 UTC (permalink / raw)
  To: Christy, Jason E <Jason.Christy@pnnl.gov>; pgsql-bugs


Hi,

On Mon, 2016-08-29 at 19:12 +0000, Christy, Jason E wrote:
> It turns out I downloaded the rpm from the following url:
> https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6.8-x86_64/
> 
> Do you package the rpms? If not, who does?

This is the community YUM repo, and I am one of the packagers.

I'd suggest moving this discussion to pgsql-pkg-yum@postgresql.org 

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

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2016-08-30 08:32 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-27 07:11 BUG #14298: service upgrade not setting ports jason.christy@pnnl.gov
2016-08-29 18:45 ` Bruce Momjian <bruce@momjian.us>
2016-08-29 18:49   ` Christy, Jason E <Jason.Christy@pnnl.gov>
2016-08-29 19:00 ` Devrim Gündüz <devrim@gunduz.org>
2016-08-29 19:12   ` Christy, Jason E <Jason.Christy@pnnl.gov>
2016-08-30 08:32     ` Devrim Gündüz <devrim@gunduz.org>

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