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
this ought to work without you modifying the source csv file:
alter table people alter column age type text; copy people from '/tmp/people.csv' with csv;