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 1pH9XE-00061X-Hg for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 20:23:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pH9XC-0003ZU-VG for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 20:23:18 +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 1pH9XB-0003ZK-V9 for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 20:23:18 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH9X8-0005oZ-EW for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 20:23:17 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 5B79E32005D8; Sun, 15 Jan 2023 15:23:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 15 Jan 2023 15:23:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1673814191; x= 1673900591; bh=N42/3B6agsNBm7h3e2Vv3s9XFt/Vwa/oMM2QYhxvFsI=; b=J iKf6nDKkUqFPIXFxReQeESTKA4TfqiuIVlT8yj7uhpBUyr59o6PhJXUiz66Dq6Ca zCAHH5durbsV2q2b2WLRf0TXRVanLz2NatELXU8TMeOhaXF3k+hMfMX/2lnpOakP JYOkd6XeD9KA87ybhJ+bkROOm/Adb20tZ0dTxNQDFNQCNhEH6q4qDR2lnrhJmCgZ 0rwl8fexQizuMYFUC3i6xjGOOn4+D90lSAtMWjNvPNzE7TJzZrxwy5jEdLR6evQo nvVkiH7CnaKnnqqkGiEogS8RgCg2JoK1Fmk4SYTRlPDG3vUX2st5ykjMKDR4QGgi Q/l+15051cODSOKM2zryQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1673814191; x=1673900591; bh=N 42/3B6agsNBm7h3e2Vv3s9XFt/Vwa/oMM2QYhxvFsI=; b=oNNyM88aL2Z+H+BC/ qprkuwm71Zb8TVjKFTtGrDzC9nR3flmLy8CEZ4ZkFHMr4mGuGu/Enx3b2ENPTaW9 w/akqw0bptZvsSM+4oIOjDyuZ+XKslOJbp+P3M1jJKjEp2yiP4CDtniY5cYOb1nv X1pWbqqYyD769AfMt45FTrlXT6xVz8WU9qTjA9fouVgHb71nHZXeFofIJudRPVKA Ys7SqQCA8T1nFNuD/J6zHfxLsit4tCcieDVyBHoJxyW6EE5C8AcSGtj44IwVdrzp Sy8IekVR3Mn0AvAnDM76dX7gh89MBVA75liPgExHLuh6T/VRTA367f1xc+q0U/6N YjKAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtvddgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeffudehtd dugefgkeevudffheevvefhfeettdfhveeivdfgieeghfeiueeggffggeenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdr tghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 15 Jan 2023 15:23:11 -0500 (EST) Message-ID: <9a8899f2-211f-ae2a-1071-c1567d7ae988@aklaver.com> Date: Sun, 15 Jan 2023 12:23:10 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: pg_upgrade 13.6 to 15.1? To: pf@pfortin.com, pgsql-general@lists.postgresql.org References: <20230115142732.0ec38e2a.pfortin@pfortin.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20230115142732.0ec38e2a.pfortin@pfortin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/15/23 11:27, pf@pfortin.com wrote: > Hi, > > I'm fairly new to postgres; but have databases with about 2TB of data. > > Trying to upgrade from 13.6 to 15.1, pg_upgrade complains with: > [postgres@pf ~]$ /usr/bin/pg_upgrade -b /usr/local/pgsql/bin -B /usr/bin \ > -d /mnt/db/var/lib/pgsql/data -D /mnt/work/var/lib/pgsql/data \ > -s /tmp -U postgres > Nothing I read implies the need to upgrade to 14.x first... Right? In addition to Tom Lane's comments I would recommend reading this: https://www.postgresql.org/docs/current/pgupgrade.html multiple times. There is a lot going on there and it will take a couple of reads at least to begin to understand it all. > > Thanks > Pierre > > > -- Adrian Klaver adrian.klaver@aklaver.com