model-writtenrun 8054 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported that running out of disk space while restoring a large object produced an enormous unsigned result value instead of a useful error in #1.
- Justin Pryzby attached and tested a formatting patch that displayed the result as -1 and also updated related size formatting in the archiver and tar code in #1.
- Tom Lane identified the underlying type error: lo_write() returns int, while dump_lo_buf() stored its result in size_t, unlike the other call sites #2.
- Tom Lane implemented a separate fix in 929c69aa19, correcting the result type, displaying the underlying database error, and respecting pg_restore's policy on continuing after SQL errors.
- Tom Lane announced the committed fix in #3, closing the thread; Justin Pryzby's broader formatting patch was not adopted, and 929c69aa19 questioned whether backpatching was warranted given the lack of similar complaints.