Re: How to check for pg_dump errors?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to check for pg_dump errors?
Дата
Msg-id 8109.1128717180@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to check for pg_dump errors?  (Chris Hoover <revoohc@gmail.com>)
Список pgsql-admin
Chris Hoover <revoohc@gmail.com> writes:
> 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?

pg_dump should return nonzero exit code on failure.  (At least in recent
releases ... not sure about how far back that's been done consistently.)

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Chris Hoover
Дата:
Сообщение: How to check for pg_dump errors?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: How to check for pg_dump errors?