Re: unexplainable psql exit status 1

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: unexplainable psql exit status 1
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17C70BB9@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: unexplainable psql exit status 1  (Tim Kane <tim.kane@gmail.com>)
Список pgsql-general
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

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

Предыдущее
От: Tim Kane
Дата:
Сообщение: Re: unexplainable psql exit status 1
Следующее
От: Vick Khera
Дата:
Сообщение: Re: how much disk space does a VACUUM FULL take?