How to check for pg_dump errors?

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: How to check for pg_dump errors?
Date: 2005-10-07 20:13:50
Message-ID: 1d219a6f0510071313h3aa2c7c6x10bc33d6a7740c3b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Silly question, but in a shell script, what is the best way to check for a
pg_dump problem? I'm working on reworking our backup methodology, and want
to make sure that if pg_dump can't dump a db, we page the on call db. Does
it return any sort of exit code indicating it was not successful dumping a
database?

Thanks,

Chris

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-10-07 20:33:00 Re: How to check for pg_dump errors?
Previous Message lorid 2005-10-07 15:16:20 How do I unsubscribe?