Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY8uq-0001JN-Ha for pgsql-general@arkaria.postgresql.org; Wed, 06 Oct 2021 15:33:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mY8up-0000eL-4W for pgsql-general@arkaria.postgresql.org; Wed, 06 Oct 2021 15:33:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY8un-0000d2-PV for pgsql-general@lists.postgresql.org; Wed, 06 Oct 2021 15:33:06 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY8ui-0006pu-89 for pgsql-general@lists.postgresql.org; Wed, 06 Oct 2021 15:33:04 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6C1E0320090C; Wed, 6 Oct 2021 11:32:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 06 Oct 2021 11:32:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=9 qMjWBUhIntO/PUSUTfUUxfCDDHSPwLs7J9twx4Adpo=; b=FgVvFbzmYY1kHIQWJ RFuDj8g/szsAYxjjAf6R74/VSdYLYgAotlk5WorvXUeuDrQRS232J7dgOEUX26Ll thefIe7LB9rZIa24CKS74k8KU4BBV/WBf3GXn+Y1C14ylD8aWJkg3rs9irg9r5ep 9NUlFWb89e0rk77hxih3uu6ouj32L6BF7wLH91kTFP3N4lBZ9NJsGvw50YbY1cM4 MMX6RBgujFyGnNH1JzoQwAgp7q9D3ZwwgNKERjuSBQfUtTzHBWOdCvwGVroB/53q UPZ3Md3TT8YBj2T6vgkEkPIMHwr/UfEE3O7qg25/qJR68m0zDknrsWVIUE3Z+lNs fNRJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=9qMjWBUhIntO/PUSUTfUUxfCDDHSPwLs7J9twx4Ad po=; b=MW62GbIY5H239Dxqm10LkyzhIzXMQ28DZjGC2TdHwk8aU0+cRAkqWWDDR q4r+4deGW4IIub5CONnRYUDjw7uuJJf3sLlS4a0+zn5sgNWNNX/jpgz46GHKf+kq 62Tu53+UZGV2aYC4/DMTYmrPzDcrSjgxy7aFXOtRu1cDnGDxd5X3LWrSJJH8kRIp 0OSYrAG9sKOy6lo6/64vBFDS/J2pwnyG1X7K0VSvrLMqK3zpF6x49/aihuJJ5JID ulx7QI7VYy+RT9PohqsKPUqmwu3y+BnU5z4ztAvWWbBklFzmWh6XhLYMicPMBLT4 7KJ+EI/Tky2NcRPJnaYEwlYjlZgsA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeliedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Oct 2021 11:32:56 -0400 (EDT) Subject: Re: how to merge two postgresql server instances into one To: Marco Lechner , "pgsql-general@lists.postgresql.org" References: <5c0755626e364831849d20919f394a3a@bfs.de> From: Adrian Klaver Message-ID: Date: Wed, 6 Oct 2021 08:32:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <5c0755626e364831849d20919f394a3a@bfs.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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