Re: zero (o) return code on failure of pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: zero (o) return code on failure of pg_dump
Дата
Msg-id 10857.1057087787@sss.pgh.pa.us
обсуждение исходный текст
Ответ на zero (o) return code on failure of pg_dump  (Derek Main <djm@ct.ucs.co.za>)
Список pgsql-admin
Derek Main <djm@ct.ucs.co.za> writes:
> I run a pg-dump in one of my scripts and want to send an e-mail on
> failure (i.e. non-zero return code). This particular dump ran out of
> disk space and failed. However, the return code is zero!

That seems like a bug.  Looking at current sources, it seems that
pg_dump will always exit(1) if it detects a failure --- did it not
notice the failure?

            regards, tom lane

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

Предыдущее
От: Pedro Salazar
Дата:
Сообщение: embed postgresql installation : tuning size/performance [off-topic]
Следующее
От: "Daniel Seichter"
Дата:
Сообщение: Re: postgreSQL users = LDAP users?