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 1kfVsM-0003dV-Kb for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 22:24:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfVsJ-0005v8-1T for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 22:24:27 +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 1kfVoa-0002O3-G8 for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 22:20:37 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfVoW-0005KD-W7 for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 22:20:35 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8B4495C01A4; Wed, 18 Nov 2020 17:20:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 18 Nov 2020 17:20:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=SZMiVrk4rU+u4ZumZ 6SOgx9aYS0qeCEnALMKc6qUlvA=; b=k5sJTb4jLjNa5wJAp+VydoiSsSFbFc8jg 2IfHDtnkWCZK9NIk6LZ7d/azVQJSy7ywVqiBUrS5LTfy58xr5c8cso3cbyoEPVFu T4u9OBH2gc7KqVGsCDPKqDr7Bbe425uZ07p/idy8Btsj847cfh2QJygQf5hZ1X7E /8JALF4Pr60MLHOtKgt9kaf/BtX8+G11HATUtYGFAL//9ZrFPaRo272ECX9iDpMW ZSDR6y9yJhycd82mj8OnN11wQgvUJE2yPhcKfLkk6JZWdxDReJwGAJ1Ryk0P09zV 9jwE/HsHWCdPwJRLf5FyRgZgoz1tU+t6h3VxP2SVrSA4n8k6bmafg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefhedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteet ieduieeihffggfehffetnecukfhppeduledtrdelhedrudekrdejleenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.18.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 3CEF73280060; Wed, 18 Nov 2020 17:20:31 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 99E902A615D; Wed, 18 Nov 2020 13:22:52 -0300 (-03) Date: Wed, 18 Nov 2020 13:22:52 -0300 From: Alvaro Herrera To: Stephen Haddock Cc: pgsql-general@lists.postgresql.org Subject: Re: psql backward compatibility Message-ID: <20201118162252.GA21225@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Nov-18, Stephen Haddock wrote: > Hello, > > When upgrading an older version of postgres, version 8.4 for example, to a > newer version such as 9.6, does the data have to be migrated immediately? As others have said: yes. > It looks like the recommended method is to dump the data, upgrade, > initialize a new cluster, and then restore the dumped data into the newer > version. Actually, you can also use pg_upgrade, which might be more convenient, particularly if your database is large.