Help: pg_restore failure

Started by Edison Soalmost 15 years ago3 messagesgeneral
Jump to latest
#1Edison So
edison.so2@gmail.com

I have a DELL server running Windows server 2003 and Postgres 8.1.

I used pg_dump to back up a database test:

pg_dump -v -h localhost -p 5432 -U postgres -F c -b -f
"D:/db_dump/backup.bak" test

The backup was showing the following error.
.
pg_dump: dumping contents of table history
pg_dump: [custom archiver] WARNING: ftell mismatch with expected position --
ftell used

pg_dump: dumping contents of table history_archive

pg_dump: [custom archiver] WARNING: ftell mismatch with expected position --
ftell used

pg_dump: dumping contents of table historymetadata

pg_dump: [custom archiver] WARNING: ftell mismatch with expected position --
ftell used

I was trying to do a Posgres 8.1.4 backup and restored it to Postgres 9.0 on
a new Dell server running Windows server 2008.

Any clue how to resolve it?

Edison

--
Edison

#2Adrian Klaver
adrian.klaver@aklaver.com
In reply to: Edison So (#1)
Re: Help: pg_restore failure

On 04/15/2011 01:15 PM, Edison So wrote:

I have a DELL server running Windows server 2003 and Postgres 8.1.
I used pg_dump to back up a database test:
pg_dump -v -h localhost -p 5432 -U postgres -F c -b -f
"D:/db_dump/backup.bak" test
The backup was showing the following error.
.
pg_dump: dumping contents of table history
pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used

pg_dump: dumping contents of table history_archive

pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used

pg_dump: dumping contents of table historymetadata

pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used
I was trying to do a Posgres 8.1.4 backup and restored it to Postgres
9.0 on a new Dell server running Windows server 2008.
Any clue how to resolve it?

My guess related to this:
http://archives.postgresql.org/pgsql-general/2008-08/msg00373.php

Try using the Postgres 9.0 version of pg_dump to take the dump of the
8.1 server.

Edison

--
Edison

--
Adrian Klaver
adrian.klaver@gmail.com

#3Edison So
edison.so2@gmail.com
In reply to: Adrian Klaver (#2)
Re: Help: pg_restore failure

Hello Adrian,

Thank you for the reply.

I will definitely give it a try on Monday.

I am trying to use pg_dump command to backup up each table in the database
and restore them one by one using the "-t" option. It is going to be a
painful process because 8.1 pg_dump does not have the "exclude" option like
"-T" in 8.4. Some tables in my database are of 1G in size. I need to isolate
them so as to keep the backup less than 2G in size.

Thanks,

On Fri, Apr 15, 2011 at 6:58 PM, Adrian Klaver <adrian.klaver@gmail.com>wrote:

On 04/15/2011 01:15 PM, Edison So wrote:

I have a DELL server running Windows server 2003 and Postgres 8.1.
I used pg_dump to back up a database test:
pg_dump -v -h localhost -p 5432 -U postgres -F c -b -f
"D:/db_dump/backup.bak" test
The backup was showing the following error.
.
pg_dump: dumping contents of table history
pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used

pg_dump: dumping contents of table history_archive

pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used

pg_dump: dumping contents of table historymetadata

pg_dump: [custom archiver] WARNING: ftell mismatch with expected
position -- ftell used
I was trying to do a Posgres 8.1.4 backup and restored it to Postgres
9.0 on a new Dell server running Windows server 2008.
Any clue how to resolve it?

My guess related to this:
http://archives.postgresql.org/pgsql-general/2008-08/msg00373.php

Try using the Postgres 9.0 version of pg_dump to take the dump of the 8.1
server.

Edison

--
Edison

--
Adrian Klaver
adrian.klaver@gmail.com

--
Edison