Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9jPI-0000ti-Dd for pgsql-admin@arkaria.postgresql.org; Thu, 24 Nov 2016 02:05:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c9jPI-0006GH-0N for pgsql-admin@arkaria.postgresql.org; Thu, 24 Nov 2016 02:05:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c9jPH-0006G2-B2 for pgsql-admin@postgresql.org; Thu, 24 Nov 2016 02:04:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c9jPA-00053q-4M for pgsql-admin@postgresql.org; Thu, 24 Nov 2016 02:04:58 +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 uAO24oRS013943; Wed, 23 Nov 2016 21:04:50 -0500 From: Tom Lane To: Marc Fromm cc: "pgsql-admin@postgresql.org" Subject: Re: restore a pg_dumpall only breaks In-reply-to: References: Comments: In-reply-to Marc Fromm message dated "Thu, 24 Nov 2016 02:00:03 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13941.1479953090.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Nov 2016 21:04:50 -0500 Message-ID: <13942.1479953090@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Marc Fromm writes: > If I use the command "pg_dumpall -c -U postgres | gzip > pg_dbs.gz" to cr= eate a backup of all databases from "postgresql 9.2" and then restore it to= "postgresql 8.1" on a different server only about the first half of the da= tabases are restored with their tables and records. The second half, only t= he databases themselves are created but with no tables and no records. A dump from 9.2 is no sure thing to restore into an 8.1 database; there may be SQL syntax in it that 8.1 doesn't understand. Have you checked for errors during the restore? regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin