Re: BUG #2645: pg_restore crashes - Mailing list pgsql-bugs

From Andrew MacLeod
Subject Re: BUG #2645: pg_restore crashes
Date
Msg-id 752254.23929.qm@web25403.mail.ukl.yahoo.com
Whole thread Raw
In response to BUG #2645: pg_restore crashes  ("Thomas Verchow" <thomas@verchow.de>)
List 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
SELECTcount(*) 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

pgsql-bugs by date:

Previous
From: SAKAI Kiyotaka
Date:
Subject: Compiling problem on Solaris
Next
From: Jorge.De-Pauw@BULL.BE
Date:
Subject: ERROR: could not access status transaction #####