V16 to V18 Upgrade with pg_dumpall -- Question

Поиск
Список
Период
Сортировка
Искать

V16 to V18 Upgrade with pg_dumpall -- Question

От:
"Subramanian,Ramachandran" <ramachandran.subramanian@alte-leipziger.de>
Дата:

Hello,

 

  we are not doing an inplace upgrade using the pg_upgrade.  Our Linux Admin tells us that the image he downloads is from REDHAT and not from POSTGRES and it allows only one version of Postgres to be installed at any given time.

 

I am forced to use pg_dumpall à Stop postgres à Let the Linux admin do his magic à Init db à psql -f  „dumpallfile.txt“

 

This means that the Linux Admin and I have to work simultaniously.

 

Is there a way by which the Linux admin can update the postgres from V16 to V18 , while V16 instance is still running, and I can come in later and do my sequence ?

 

That is, V18 is intalled at the OS level , while V16 is running , then I do a pg_dumpall/stop/initdb—now V18à/pg_ctl start/ psql -f dumpall.txt

 

 

Thank you in advance for your time.

 

 

LG


Ram

 

 

 


Freundliche Grüße

i. A. Ramachandran Subramanian

Zentralbereich Informationstechnologie

Alte Leipziger Lebensversicherung a. G.

Hallesche Krankenversicherung a. G.

______________________

ALH Gruppe
Alte Leipziger-Platz 1, 61440 Oberursel
Tel: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de

Alte Leipziger Lebensversicherung a. G., Alte Leipziger-Platz 1, 61440 Oberursel

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Robert Gladis, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Udo Wilcsek

Sitz Oberursel (Taunus) · Rechtsform VVaG · Amtsgericht Bad Homburg v. d. H. HRB 1583 · USt.-IdNr. DE 114106814


Hallesche Krankenversicherung a. G., Löffelstraße 34-38, 70597 Stuttgart

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Robert Gladis, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Udo Wilcsek

Sitz Stuttgart · Rechtsform VVaG · Amtsgericht Stuttgart HRB 2686 · USt.-IdNr. DE 147802285

Beiträge zu privaten Kranken- und Pflegekrankenversicherungen unterliegen nicht der Versicherungsteuer (§ 4 (1) Nr. 5 b VersStG) · Versicherungsleistungen sowie Umsätze aus Versicherungsvertreter-/Maklertätigkeiten sind umsatzsteuerfrei


Pflichtangaben der ALH Gruppe gemäß § 35a GmbHG bzw. § 80 AktG

Re: V16 to V18 Upgrade with pg_dumpall -- Question

От:
"David G. Johnston" <david.g.johnston@gmail.com>
Дата:
On Monday, September 21, 2026, Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de> wrote:

Our Linux Admin tells us that the image he downloads is from REDHAT and not from POSTGRES and it allows only one version of Postgres to be installed at any given time.


Either this is true and you can’t do what you want below, or it’s false and you can.

But yeah, usually either you install two versions one the same machine at the same time e or you install one version on each of two machines at the same time.   Both these tend to minimize downtime and risk.  There is a bit of complexity to do either.

David J.

Re: V16 to V18 Upgrade with pg_dumpall -- Question

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Subramanian,Ramachandran"  writes:
>   we are not doing an inplace upgrade using the pg_upgrade.  Our Linux Admin tells us that the image he downloads is from REDHAT and not from POSTGRES and it allows only one version of Postgres to be installed at any given time.

It's been a dozen years since I worked on Red Hat's RPMs, but my
recollection is that (a) indeed, you can have only one set of
Postgres RPMs installed at a time, but (b) the version-N RPMs
include a "postgresql-upgrade" sub-package that contains a
version N-minus-1 server, and by installing that and following
its directions you could do an in-place upgrade from N-1 to N.
You'd have to do that twice to get from v16 to v18.

It's possible that they redesigned that since I was there.
Something using the "alternatives" infrastructure would be
more flexible.

			regards, tom lane


Re: V16 to V18 Upgrade with pg_dumpall -- Question

От:
Justin <zzzzz.graf@gmail.com>
Дата:
I do not think this accurate unless something has changed.  

Redhat packages install the binaries then leave all the configuration up to admin/DBA.  Data directory, initialize the database etc...  

If the packages detect and prevent installation of multiple pg versions  I would say switch to the redhat pg community package

On Mon, Sep 21, 2026, 8:13 AM David G. Johnston <david.g.johnston@gmail.com> wrote:
On Monday, September 21, 2026, Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de> wrote:

Our Linux Admin tells us that the image he downloads is from REDHAT and not from POSTGRES and it allows only one version of Postgres to be installed at any given time.


Either this is true and you can’t do what you want below, or it’s false and you can.

But yeah, usually either you install two versions one the same machine at the same time e or you install one version on each of two machines at the same time.   Both these tend to minimize downtime and risk.  There is a bit of complexity to do either.

David J.

AW: V16 to V18 Upgrade with pg_dumpall -- Question

От:
"Subramanian,Ramachandran" <ramachandran.subramanian@alte-leipziger.de>
Дата:

Hello all,

 

I worked with our Linux team and got them to install an image that allows in place upgrade. I tested it and it works.

 

Thank you all for all your inputs.

 

LG


Ram

 

Freundliche Grüße

i. A. Ramachandran Subramanian

Zentralbereich Informationstechnologie

Alte Leipziger Lebensversicherung a. G.

Hallesche Krankenversicherung a. G.

______________________

ALH Gruppe
Alte Leipziger-Platz 1, 61440 Oberursel
Tel: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de

Alte Leipziger Lebensversicherung a. G., Alte Leipziger-Platz 1, 61440 Oberursel

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Robert Gladis, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Udo Wilcsek

Sitz Oberursel (Taunus) · Rechtsform VVaG · Amtsgericht Bad Homburg v. d. H. HRB 1583 · USt.-IdNr. DE 114106814


Hallesche Krankenversicherung a. G., Löffelstraße 34-38, 70597 Stuttgart

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Robert Gladis, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Udo Wilcsek

Sitz Stuttgart · Rechtsform VVaG · Amtsgericht Stuttgart HRB 2686 · USt.-IdNr. DE 147802285

Beiträge zu privaten Kranken- und Pflegekrankenversicherungen unterliegen nicht der Versicherungsteuer (§ 4 (1) Nr. 5 b VersStG) · Versicherungsleistungen sowie Umsätze aus Versicherungsvertreter-/Maklertätigkeiten sind umsatzsteuerfrei


Pflichtangaben der ALH Gruppe gemäß § 35a GmbHG bzw. § 80 AktG

Von: Justin <zzzzz.graf@gmail.com>
Gesendet: Montag, 21. September 2026 15:39
An: David G. Johnston <david.g.johnston@gmail.com>
Cc: Subramanian,Ramachandran IT-md-db <ramachandran.subramanian@alte-leipziger.de>; pgsql-novice@lists.postgresql.org
Betreff: Re: V16 to V18 Upgrade with pg_dumpall -- Question

 

I do not think this accurate unless something has changed.  

 

Redhat packages install the binaries then leave all the configuration up to admin/DBA.  Data directory, initialize the database etc...  

 

If the packages detect and prevent installation of multiple pg versions  I would say switch to the redhat pg community package

 

On Mon, Sep 21, 2026, 8:13 AM David G. Johnston <david.g.johnston@gmail.com> wrote:

On Monday, September 21, 2026, Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de> wrote:

Our Linux Admin tells us that the image he downloads is from REDHAT and not from POSTGRES and it allows only one version of Postgres to be installed at any given time.

 

Either this is true and you can’t do what you want below, or it’s false and you can.

 

But yeah, usually either you install two versions one the same machine at the same time e or you install one version on each of two machines at the same time.   Both these tend to minimize downtime and risk.  There is a bit of complexity to do either.

 

David J.

 

FAQ