4 ms·
How did you know if the pg_dump finished running? In my experience, there doesn't seem to be any way to find out if it finished, or exited prematurely. The only
by AznHisoka 8y ago
How did you know if the pg_dump finished running? In my experience, there doesn't seem to be any way to find out if it finished, or exited prematurely. The only hack I came up with is to write the output to a log, and then grep the log for the last alphabetical table, and ensure it was in the log. That usually meant it backed up all the tables.
- adamzochowski 8y agopg_dump provides return codes just like any other executable. Zero means no error, and treat non-zero value as an error.