psql dones't reflect exit status if input command via stdin

Поиск
Список
Период
Сортировка
От magodo
Тема psql dones't reflect exit status if input command via stdin
Дата
Msg-id ee57f43d501e57e7dfa70be17b6345ae2e9ffdcb.camel@sina.com
обсуждение исходный текст
Ответы Re: psql dones't reflect exit status if input command via stdin
Список pgsql-general
Hello,

I found when running command like `# echo "xxx" | psql postgres
postgres`, the return code is always 0 even though the command ("xxx")
here is of invalid syntax. While the `psql -c` way handled exit code
correctly.

In the meanwhile, mysql client handled both cases correctly.

---
Zhaoting.Weng





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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: does postgresql backup require additional space on disk
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: psql dones't reflect exit status if input command via stdin