Search Postgresql Archives

Re: unexplainable psql exit status 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Kane wrote:
> I’ve enabled shell debugging to be 100% sure that I’m not munging the return code anywhere. It’s
> entirely possible there is something going on at the shell side of things, though I fail to see how
> just at the minute :)
> The output of the script is as follows, bearing in mind that all STDERR is being redirected to STDOUT
> – there should be no other output to be found.
> I’ve verified stdout just in case, to no avail.
> 
[...]
> COMMIT;
> COMMIT
> Time: 0.242 ms

Doesn't look like that could cause return code 1 ...

Just a random idea: are there any weird characters at
the end of your SQL script?
But that wouldn't explain why psql sometimes emits
return code 1 and sometimes not ...

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux