Use fork/exec to run pg_dump/psql, and log all output in the log