Re: insert aborted commands ignored - Mailing list pgsql-admin

From Andrew Gierth
Subject Re: insert aborted commands ignored
Date
Msg-id 871s4sa63w.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
Responses Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
Re: insert aborted commands ignored  (Pepe TD Vo <pepevo@yahoo.com>)
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Old WAL files under pg_xlog not getting delete
Next
From: Pepe TD Vo
Date:
Subject: Re: insert aborted commands ignored