psql: exit status

Поиск
Список
Период
Сортировка
От Moritz Sinn
Тема psql: exit status
Дата
Msg-id m3it2o9moo.fsf@moritz.sinnhq.de
обсуждение исходный текст
Список pgsql-general
hi,

when i submit a single SQL command to psql (by -c), and this command
fails, the exit status of psql is 1 ($?).
but if i use the -f option to get the SQL commands from a file, and
these commands fail, the exit status is 0.
i think here the exit status should be >0.
i wanted to use psql in a script, that's why i came to this problem.

regards,
 moritz

--
Charles Briscoe-Smith <cpbs@debian.org>:
  After all, the gzip package is called `gzip', not `libz-bin'...

James Troup <troup@debian.org>:
  Uh, probably because the gzip binary doesn't come from the
  non-existent libz package or the existent zlib package.
    -- debian-bugs-dist

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

Предыдущее
От: "Ben-Nes Michael"
Дата:
Сообщение: Return num of deleted rows from function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Return num of deleted rows from function