pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: restore a pg_dumpall only breaks
Date: Wed, 23 Nov 2016 21:04:50 -0500
Message-ID: <13942.1479953090@sss.pgh.pa.us> (raw)
In-Reply-To: <CY1PR0201MB14360D78FE30F98FFAB1E00B9DB60@CY1PR0201MB1436.namprd02.prod.outlook.com>
References: <CY1PR0201MB14360D78FE30F98FFAB1E00B9DB60@CY1PR0201MB1436.namprd02.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Marc Fromm <Marc.Fromm@wwu.edu> writes:
> If I use the command "pg_dumpall -c -U postgres | gzip > pg_dbs.gz" to create 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 databases are restored with their tables and records. The second half, only the 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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (7+ messages)  latest in thread

Message-ID: <13942.1479953090@sss.pgh.pa.us>
Permalink:  ../13942.1479953090@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13942.1479953090@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Marc.Fromm@wwu.edu
  Subject: Re: restore a pg_dumpall only breaks
  In-Reply-To: <13942.1479953090@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox