Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YCvUf-0002J0-RL for pgsql-admin@arkaria.postgresql.org; Sun, 18 Jan 2015 19:26:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YCvUf-0000Hk-An for pgsql-admin@arkaria.postgresql.org; Sun, 18 Jan 2015 19:26:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YCvUd-0000F3-TT for pgsql-admin@postgresql.org; Sun, 18 Jan 2015 19:26:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YCvUa-0005QS-H6 for pgsql-admin@postgresql.org; Sun, 18 Jan 2015 19:26:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0IJQVkL006398; Sun, 18 Jan 2015 14:26:31 -0500 From: Tom Lane To: Scott Ribe cc: pgsql-admin , hemy_perry@mentor.com Subject: Re: pg_dump from older version and pg_restore in newer In-reply-to: <3552A244-5681-4C35-A2EF-241089E54A86@elevated-dev.com> References: <3552A244-5681-4C35-A2EF-241089E54A86@elevated-dev.com> Comments: In-reply-to Scott Ribe message dated "Sun, 18 Jan 2015 08:46:58 -0700" Date: Sun, 18 Jan 2015 14:26:31 -0500 Message-ID: <6397.1421609191@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Scott Ribe writes: > On Jan 18, 2015, at 3:25 AM, Perry, Hemy wrote: >> Is that a must? > No. Just a good precaution. >> Is there a chance that a restore using new version will fail because the dump was taken with *old* bin? > Yes. In principle, ie in the absence of bugs, it should work either way. The reason for the standard recommendation to use the newer version's pg_dump is the possibility that your old pg_dump contains bugs that have been fixed in the newer version. This is a non-negligible risk when you're talking about a pg_dump that's several years old, as 9.1.7 is. If you were comparing minor releases of similar date, eg 9.1.14 versus 9.4.0, the risk calculation might shift the other way (since 9.1.14 would contain back-patches for any old bugs recently identified, but 9.4.0 might contain new bugs all its very own). If you're worried about compatibility issues, a reasonably quick and reliable way of pre-testing is to do a "pg_dump -s" (schema only) and see if that loads into the new version without issues. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin