pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marco Lechner <mlechner@bfs.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: AW: how to merge two postgresql server instances into one
Date: Thu, 7 Oct 2021 08:19:25 +0000
Message-ID: <5cf65b0dca4a4be095ab332198c3c630@bfs.de> (raw)
In-Reply-To: <d6bbe307-4c6d-b53b-5b41-8a4e6d2d12cf@aklaver.com>
References: <5c0755626e364831849d20919f394a3a@bfs.de>
	<d6bbe307-4c6d-b53b-5b41-8a4e6d2d12cf@aklaver.com>

Hi Adrian,

does this clearify the mission:

Recent:
PostgreSQL 11:
  - Db1_foo
  - Db2_bar
  - postgres
  - template1
PostgreSQL 12:
  - Db3_zii
  - Db4_gee
  - postgres
  - template1

Result after Upgrade:
PostgreSQL 14:
  - Db1_foo
  - Db2_bar
  - Db3_zii
  - Db4_gee
  - postgres (not from PG11/PG12)
  - template1 (not from PG11/PG12)

Used extensions: postgis, hstore.
But I see, that another task might be to have user/roles from both PG11 and PG12 copied to PG14.


-----Ursprüngliche Nachricht-----
Von: Adrian Klaver <adrian.klaver@aklaver.com> 
Gesendet: Mittwoch, 6. Oktober 2021 17:33
An: Marco Lechner <mlechner@bfs.de>; pgsql-general@lists.postgresql.org
Betreff: Re: how to merge two postgresql server instances into one

WARNUNG: Diese E-Mail kam von außerhalb der Organisation. Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen den/die Absender*in und wissen, dass der Inhalt sicher ist.


On 10/6/21 2:58 AM, Marco Lechner wrote:
> Hi,
>
> how to merge two postgresql server instances into one? I have a
> postgresql-11 and -12 instance on my server and want to upgrade both
> (pg_upgrade?) into one postgresql-14 instance.

The bigger issue will be the merge. Define what that means in this context?

>
> The postgresql-14 instance does not exist yet (fresh install of
> postgresql-14 server packages). Using pg_upgrade to upgrade the larger 
> one and pg_dumpall/pg_restore for the smaller one? Or are there any 
> other nice recommended workflows?
>
> i.A. Dr. Marco Lechner
>
> Leiter Fachgebiet RN 1 │ Head RN 1
>
> --
>
> Bundesamt für Strahlenschutz │ Federal Office for Radiation Protection
>
> Koordination Notfallschutzsysteme │ Coordination Emergency Systems │ 
> RN 1
>


--
Adrian Klaver
adrian.klaver@aklaver.com


view thread (3+ messages)  latest in thread

Message-ID: <5cf65b0dca4a4be095ab332198c3c630@bfs.de>
Permalink:  ../5cf65b0dca4a4be095ab332198c3c630@bfs.de/
Also on:    postgresql.org/message-id/5cf65b0dca4a4be095ab332198c3c630@bfs.de

 · 

reply

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-general@postgresql.org
  Cc: mlechner@bfs.de
  Subject: Re: how to merge two postgresql server instances into one
  In-Reply-To: <5cf65b0dca4a4be095ab332198c3c630@bfs.de>
  References: <5c0755626e364831849d20919f394a3a@bfs.de> <d6bbe307-4c6d-b53b-5b41-8a4e6d2d12cf@aklaver.com> <5cf65b0dca4a4be095ab332198c3c630@bfs.de>

* 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