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 1mLskS-0001FQ-MI for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 19:51:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLskR-0005lY-Is for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 19:51:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLskQ-0005lM-3t for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 19:51:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLskL-0000TQ-2h for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 19:51:41 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C87375C014B; Thu, 2 Sep 2021 15:51:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 02 Sep 2021 15:51:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=c sXyXaV8RBWtLlAQJBSq2G7urunwpaTtUD4Ts3/husQ=; b=bbSQtBsj0TLXkRCNb Lobm/hqmd3mnsLC/mVh7c7Nt2aVvcIlYc/A0/WwBtd5y2Ln2muq/4AZeiPu8l+fF EjiLpEUejYykH/AQgI2mR//hqJX9eJVvUWDjNOqhNeVahmCGdh+1RN+utCHa0mkJ 0/0NmAu/RwaBZrirJHighU2VEwfPS4ODbf4rzNSEBPRjCOJoSCU9gVeY/np4KBSN 2rCEru1J7f3/Bu+T994g3k8JMUxP1gsV/UeN4r5KPfXCtujCiw2RWozt+6+67uCS v19vwXF+ACrQi6J1rMSkQ+1otR6ucot/gKefdOltA9IrGGYX8rR3T4g+R02ILjqe Js7eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; bh=csXyXaV8RBWtLlAQJBSq2G7urunwpaTtUD4Ts3/hu sQ=; b=hUCvVISxZHnKRL64fmnhcAd7PT+z25Ocushwyf/OEv7Gv3yQRsdt5ToF6 czMlc+662NdBe+2Iu0LtutNwFXrVyurHDcG58tyigWjKrFoAFeHWbiEhs4xTIXsE BgybmTiIZGAxQa+iu/ucrhjH/GUy4ukJIiwfODclGjQ/9OK9NvtRMuWGc8rSSyHr YgzbpKrBL5OmD5sHI4vzZdaU3JtV+4n+HzXl8oXfSWQszcrZ5QtiIwyb2tskoo7X hMjD0u+2OdPuVgXgsxSxFlq2TjEj/ypVQajRPJCHxCua2cLNssytAYB6Yj+H6nF/ OwtBht7Q1+SvfNd1gs5kiPoY1+cIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeehueelud ffheejteevueejkedtgffhjeegvdelfeekjefhjeevieeitdefueeghfenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgpdgrshhkuhgsuhhnthhurdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 15:51:33 -0400 (EDT) Subject: Re: Upgrade 9.5 cluster on Ubuntu 16.04 To: Vano Beridze Cc: pgsql-general@lists.postgresql.org References: <52fa93d2-d934-87c4-e2e2-29856c6cdaab@aklaver.com> <5f7b4e6e-e5da-2bab-7f03-c271c369f717@aklaver.com> From: Adrian Klaver Message-ID: Date: Thu, 2 Sep 2021 12:51:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: 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 9/2/21 11:55 AM, Vano Beridze wrote: > I just want to upgrade to the OS and Postgres that is supported. > If I just stop the service on both VMs and upgrade Ubuntu, then start > Postgres, will it work or I should go with clean install and dump/restore? Prudent behavior before you do any upgrading would be to: 1) Take pg_dumpall of cluster just before shutting it down. 2) Copy that dump off the VM's for extra safety. Then you have choice of: 1) On new upgraded OS there will be a new 10 cluster created that has only the template0, template1 and postgres databases. psql -f dump.sql postgres per example here https://www.postgresql.org/docs/10/app-pg-dumpall.html 2) Or use the pg_upgrade procedure shown here: https://askubuntu.com/questions/1126847/will-a-release-upgrade-take-care-of-postgresql-upgrade-automatically I would say if the database(s) are not that big I would go with 1). > > On Thu, Sep 2, 2021 at 10:41 PM Adrian Klaver > wrote: > > On 9/2/21 11:34 AM, Vano Beridze wrote: > >  > What repo are you getting Postgres from, Ubuntu or PGDG? > > Ubuntu > > So you are going to get version 10. > > Is that what you want? > > If you want to move to something newer then this maybe the time to move > to the PGDG repos, as they allow you to install any of the current > supported versions of Postgres. > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com