title: pg_dump redirect error messages
body: <p>I'm writing a cron job to backup a database using pg_dump. I'm looking for a way of redirecting error messages so I can email a backup log file at the end of the process. Is this possible? I can't see anything in the pg_dump documentation that would support this.</p>