zero (o) return code on failure of pg_dump

Поиск
Список
Период
Сортировка
От Derek Main
Тема zero (o) return code on failure of pg_dump
Дата
Msg-id 3F019BA8.1070803@ct.ucs.co.za
обсуждение исходный текст
Ответы Re: zero (o) return code on failure of pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
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! Whether the
pg_dump succeeds or fails, zero is always returned. What is the best way
to check for the successful completion of the pg_dump?

I am running PostgreSQL 7.3 and Redhat Linux 6.2.

Thanks.

Regards,
  Derek Main.


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

Предыдущее
От: weigelt@metux.de
Дата:
Сообщение: Re: replication/redundancy
Следующее
От: Pedro Salazar
Дата:
Сообщение: embed postgresql installation : tuning size/performance [off-topic]