| От | Tom Lane |
|---|---|
| Тема | Re: psql exit code, bug ? |
| Дата | |
| Msg-id | 4367.1253111510@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | psql exit code, bug ? (Grzegorz Jaśkiewicz <gryzman@gmail.com>) |
| Ответы |
Re: psql exit code, bug ?
|
| Список | pgsql-general |
=?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= <gryzman@gmail.com> writes:
> Looks like psql loves to report on errors, only when -c is used,
> otherwise return code is always 0...
The documentation seems perfectly clear on this point:
psql returns 0 to the shell if it finished normally, 1 if a fatal error of its own (out of memory, file not found)
occurs,2 if the connection to the server went bad and the session was not interactive, and 3 if an error occurred in a
scriptand the variable ON_ERROR_STOP was set.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера