Running COPY results in ERROR: invalid input syntax for integer: \"\" error message for me. What am I missing?
ERROR: invalid input syntax for integer: \"\"
My /tmp/people.cs
/tmp/people.cs
Just came across this while looking for a solution and wanted to add I was able to solve the issue by adding the "null" parameter to the copy_from call:
cur.copy_from(f, tablename, sep=',', null='')