Postgresql – pg_dump fails, no space left, need to delete partial backup file to free space

database-backupdumppostgresql

Easy points. On my mac, postgres.app 9.2, I ran "pg_dump pdbt > pdbt.sql". It used up all my space and then failed with the error below. Now I want to free up the space taken up by "pdbt.sql" but I cannot find this file. How do I get the space back?

Error message: pg_dump: [archiver] could not write to output file: No space left on device

Best Answer

Hrm. The file should be there in its truncated form. If not, you may wanna run a disk verify in Disk\ Utility.app to look for bad file pointers & whatnot.