Re: insert aborted commands ignored

Поиск
Список
Период
Сортировка
От Pepe TD Vo
Тема Re: insert aborted commands ignored
Дата
Msg-id 258949467.1109657.1548977043936@mail.yahoo.com
обсуждение исходный текст
Ответ на Re: insert aborted commands ignored  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-admin
Thank you so much, I will run your command tomorrow.

v/r,

 
Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love and forgive more.
To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)

**Live simply **Love generously **Care deeply **Speak kindly.
*** Genuinely rich *** Faithful talent *** Sharing success


On Thursday, January 31, 2019 4:09 PM, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:


>>>>> "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 по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: insert aborted commands ignored
Следующее
От: Pepe TD Vo
Дата:
Сообщение: Re: insert aborted commands ignored