Re: restore a pg_dumpall only breaks
От
Marc Fromm
Тема
Re: restore a pg_dumpall only breaks
Дата
Msg-id
CY1PR0201MB143666A26AB2A5D0A73ED38A9DB60@CY1PR0201MB1436.namprd02.prod.outlook.com
Ответ на
Re: restore a pg_dumpall only breaks (Tom Lane)
Список
Дерево обсуждения
restore a pg_dumpall only breaks Marc Fromm <Marc.Fromm@wwu.edu>
Re: restore a pg_dumpall only breaks Tom Lane <tgl@sss.pgh.pa.us>
Re: restore a pg_dumpall only breaks Marc Fromm <Marc.Fromm@wwu.edu>
Re: restore a pg_dumpall only breaks Marc Fromm <Marc.Fromm@wwu.edu>
Re: restore a pg_dumpall only breaks Tom Lane <tgl@sss.pgh.pa.us>
Re: restore a pg_dumpall only breaks Marc Fromm <Marc.Fromm@wwu.edu>
Re: restore a pg_dumpall only breaks Marc Fromm <Marc.Fromm@wwu.edu>
> 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? After the last successful database restore from the pg_dumpall file this is displayed on the ssh session. psql:pg_dbs.bkp:1029100: \connect: invalid connection option "-reuse-previous" In the pg_dumpall file the \connect statement is different than the databases the fully restore \connect -reuse-previous=on "dbname='sfr2002-2003'" Successful restores only have \connect name_of_database. Not sure why the above one has the dbname in quotes. Where else can I check for errors? Thanks -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Wednesday, November 23, 2016 6:05 PM To: Marc Fromm Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] restore a pg_dumpall only breaks Marc Fromm 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
В списке pgsql-admin по дате отправления