Re: insert aborted commands ignored

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: insert aborted commands ignored
Дата
Msg-id 871s4sa63w.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
Ответы Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
Список pgsql-admin
>>>>> "Pepe" == Pepe TD Vo <pepevo@yahoo.com> writes:

 Pepe> here how I run the script
 Pepe> $ psql -U postgres -d CIDR < insert.sql > insert_cidrmgmt.txt

psql -v ON_ERROR_STOP=1 -U postgres -d CIDR < insert.sql > insert_cidrmgmt.txt

That tells psql to stop on the first error, so you'll be able to see
what the real error was.

Your .txt file does not capture the error because you redirected only
stdout, and errors go to stderr instead.

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Old WAL files under pg_xlog not getting delete
Следующее
От: Pepe TD Vo
Дата:
Сообщение: Re: insert aborted commands ignored