Re: restore a pg_dumpall only breaks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: restore a pg_dumpall only breaks
Date: 2016-11-24 02:04:50
Message-ID: 13942.1479953090@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Marc Fromm <Marc(dot)Fromm(at)wwu(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marc Fromm 2016-11-24 02:19:39 Re: restore a pg_dumpall only breaks
Previous Message Marc Fromm 2016-11-24 02:00:03 restore a pg_dumpall only breaks