Re: BUG #2645: pg_restore crashes

From: Andrew MacLeod <macabstract(at)yahoo(dot)co(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2645: pg_restore crashes
Date: 2006-12-14 12:16:18
Message-ID: 752254.23929.qm@web25403.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I observed this symptom with a 4Mb .backup file (details of commands issued below).

The restore always failed at the same rogue table.

On going back to the source DB, I experienced trouble on that table: vacuum worked, but vacuum FREEZE hung after which SELECT count(*) hung!

In my case, the "workaround" was to stop the source DB server and redo the backup.

My (somewhat speculative) conclusion is that there may be a problem with performing hot-backups on a live database.

Andrew.

BACKUP:
pg_dump.exe -i -h localhost -p 5432 -U Administrator -F c -b -v -f "D:\dbname.backup" dbname
Windows Server 2003, postgres 8.1.5, pgAdmin3 v1.4.3

RESTORE:
Windows XP SP2, postgres 8.1.1 pgAdmin3 v1.4.1:
C:\Program Files\PostgreSQL\8.1\bin\pg_restore.exe -i -h localhost -p 5432 -U postgres -d dbname -v "Z:\dbname.backup"


---------------------------------
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine

Browse pgsql-bugs by date

  From Date Subject
Next Message Jorge.De-Pauw 2006-12-14 13:18:34 ERROR: could not access status transaction #####
Previous Message Marek Wróbel 2006-12-14 10:43:03 execute incorect query and get data