Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDBuo-0000oL-F1 for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 18:21:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDBun-0002u9-7V for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 18:21:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDBul-0002u2-7y for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 18:21:24 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDBuh-0004Ro-P7 for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 18:21:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CD1E82242E; Wed, 25 Sep 2019 14:21:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 25 Sep 2019 14:21:18 -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=fm1; bh=l /lYHdQuEzl70fywlc5ZG8OS1tTFruHqjAdXtF/TGyM=; b=Ksa0Cv1k1v84M9tqQ AJcM3k/x44XGd8yRvSzBsKwV5+AQgr/o9i9rebS6S/M3HroyWJWeSJSa16xJusJq CVqc1dM2zjCp+ioGwZAv8gtJjTcGBNYYNI+dxCMKDDg/YNZ0DWXPTgBaGIeSAkO7 n1MsGQ+OUybRo/YaDyUuzKm8WwupJAEO+4wKTTN4UXWc9wPPaFJxv0TJddKCYy2N RNbnM+HUr7gcX4dX5BsmtjzDhc1mW94R0k9StzhE6wgP9RcB+uhQOfCJu38jA+aN GRt/0OLC6GKojnZmdpb4J4LZEBSwNqwDdefaXE130QeMXw6E2zTEz/ipeUbbTJYV aVy6A== 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=l/lYHdQuEzl70fywlc5ZG8OS1tTFruHqjAdXtF/TG yM=; b=DtLAAEa6ybsCOOkjXtq1gkE5W2s0P99dP6yuepLji6nmEZAvvnSdvBQcS FxLXIzRw1Zb7SVSLH2I+DB4FJ3A+r7kHNC1NloggZFWrWIkuTV+u4n666hr5CBQZ kRBao1UDayNKR02pO2J2cbuMpUyz8gemOZacPra8kOMA5o6NPeTi/CnZQQ0zHD60 uGDK+iJVlNiqzqolIVtXgzPR5wR61XLCHftCXbapu4MaJ+bq4ACqmC6KH/y4Ke+h gCw+YHT1k15rbixhIqCdeehfrDRvlAde2qrIVVm2gmCwbM7Hz4w0NH6Xq92UFrV1 WUncelzcoeg7DqLyFZBifoXN0Ohew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfedvgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphephedtrdduleejrdektddrvdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id BACC68005C; Wed, 25 Sep 2019 14:21:17 -0400 (EDT) Subject: Re: Upgrading old server To: Tom Lane , Ron Cc: pgsql-general@lists.postgresql.org References: <8818b028-bd2d-412e-d4e3-e29c49ffee17@zunibal.com> <20190925142933.GH6888@msg.df7cb.de> <18538.1569427239@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Wed, 25 Sep 2019 11:21:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <18538.1569427239@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/25/19 9:00 AM, Tom Lane wrote: > Ron writes: >> On 9/25/19 9:29 AM, Christoph Berg wrote: >>> Re: Ekaterina Amez 2019-09-25 <8818b028-bd2d-412e-d4e3-e29c49ffee17@zunibal.com> >>>> We've decided to upgrade our PostgreSQL production servers. First task is >>>> remove an old v7.14 version. It was supposed to be upgraded to a v8.4 >>>> server. The server was installed, several databases where released here but >>>> v7.4 was never migrated. The plan is pg_dump this database and psql it to >>>> existing 8.4 server. After this, we'll pg_upgrade. > >>> If you doing dump-restore anyway, why not restore into v11 rightaway? > >> Since it's recommend to run the newer pg_dump on the older database, I've >> got to wonder if v11 pg_dump can read the v7.4 on-disk structures. > > We dropped support for pre-8.0 source servers in pg_dump sometime > recently, though I forget if v11 is affected by that or not. Version 10.0: https://www.postgresql.org/docs/10/release-10.html > You could try just dumping with 7.4's pg_dump and seeing if the > output will load into v11 --- ideally it would, but I'd not be > surprised if there are issues that have to be resolved manually. > Or, if you have 8.4's pg_dump at hand, try using that. > > 7.4 to 11 is a big jump to be doing in one step. There's definitely > something to be said for porting to an intermediate release, just to > break down the work into smaller chunks. But I'd go for halfway between, > which if I counted releases correctly would be about 9.1, not 8.4. > > regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com