pgdump from 8.0.4 not valid for import into 8.1.0

Started by Richard Sydney-Smithover 20 years ago3 messagesgeneral
Jump to latest
#1Richard Sydney-Smith
richard@ibisau.com

? In pgAdminIII linked to 8.0.4 server did a backup of all databased.
Chose "plain" and saved to disk.
uninstalled 8.0.4
installed 8.1.0

create database in pgAdminIII v1.4
restore
---- reports as not a valid archive.

Obviously this is not what I expect.
Some older backups from a 7.4.? server on a Redhat machine will restore.

Please ? why is what I have done failed.

thanks

Richard

#2Richard Huxton
dev@archonet.com
In reply to: Richard Sydney-Smith (#1)
Re: pgdump from 8.0.4 not valid for import into 8.1.0

Richard Sydney-Smith wrote:

? In pgAdminIII linked to 8.0.4 server did a backup of all databased.
Chose "plain" and saved to disk.
uninstalled 8.0.4
installed 8.1.0

create database in pgAdminIII v1.4
restore
---- reports as not a valid archive.

Obviously this is not what I expect.
Some older backups from a 7.4.? server on a Redhat machine will restore.

I'd guess it's expecting the "custom" archive format which lets you pick
and choose what to restore. Someone more knowledgable will pop up and
say for certain shortly.

You should be able to feed a "plain" backup to psql or to pg_restore though.

--
Richard Huxton
Archonet Ltd

#3Richard Sydney-Smith
richard@ibisau.com
In reply to: Richard Huxton (#2)
Re: pgdump from 8.0.4 not valid for import into 8.1.0

Thanks Richard. Backup as compressed worked.

Richard Huxton wrote:

Show quoted text

Richard Sydney-Smith wrote:

? In pgAdminIII linked to 8.0.4 server did a backup of all databased.
Chose "plain" and saved to disk.
uninstalled 8.0.4
installed 8.1.0

create database in pgAdminIII v1.4
restore
---- reports as not a valid archive.

Obviously this is not what I expect.
Some older backups from a 7.4.? server on a Redhat machine will restore.

I'd guess it's expecting the "custom" archive format which lets you
pick and choose what to restore. Someone more knowledgable will pop up
and say for certain shortly.

You should be able to feed a "plain" backup to psql or to pg_restore
though.

--
Richard Huxton
Archonet Ltd