From: | Moritz Sinn <moritz(at)freesources(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | psql: exit status |
Date: | 2002-08-06 12:49:43 |
Message-ID: | m3it2o9moo.fsf@moritz.sinnhq.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)debian(dot)org>:
After all, the gzip package is called `gzip', not `libz-bin'...
James Troup <troup(at)debian(dot)org>:
Uh, probably because the gzip binary doesn't come from the
non-existent libz package or the existent zlib package.
-- debian-bugs-dist
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-08-06 13:55:45 | Re: Return num of deleted rows from function |
Previous Message | Nuno Barros | 2002-08-06 10:36:09 | View the contents of a database |