Re: [HACKERS] pg_upgrade misreports full disk

2013-11-15 Thread Robert Haas
On Wed, Nov 13, 2013 at 10:28 AM, Peter Eisentraut wrote: > When pg_upgrade encounters a full disk while copying relation files, > it reports this as: > > error while copying relation "xyz" (...): Success > > because it doesn't set errno in some error cases. In other places we > treat short write

[HACKERS] pg_upgrade misreports full disk

2013-11-13 Thread Peter Eisentraut
When pg_upgrade encounters a full disk while copying relation files, it reports this as: error while copying relation "xyz" (...): Success because it doesn't set errno in some error cases. In other places we treat short writes as ENOSPC, so here is a patch to do that for pg_upgrade as well. diff