>>>>> "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)