| От | Anand Raman |
|---|---|
| Тема | pg_dump return status.. |
| Дата | |
| Msg-id | 20010104154225.F13797@india-today.com обсуждение |
| Ответы |
Re: pg_dump return status..
|
| Список | pgsql-general |
hi guys I am trying to create a shell script which dumps my db to a flat file .. To dump the database i use the pg_dump command.. I find that irrespective of the fact whether pg_dump managed to connect to the db or not the return status ($?) is always zero.. This throws the shell script in a spin which continues even when pg_dump is not able to connect .. Is there anyway around this. I thought of one way was to check stderr for the occurence of the word "failed" and then exit.. Ur suggestions are most welcome version postgresql 702 Regards Anand Raman
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера