I have csv file that has contents like this:
10,53073,0,0,\'Y\',\'2008-05-30 21:46:55\',0,\'2008-05-30 21:48:04\',0,53071,2
I want to load the
Double single quotes (if standard_conforming_strings is on, see the docs)
standard_conforming_strings
COPY my_table FROM 'c:\downloads\file.csv' DELIMITERS ',' CSV QUOTE '''';
or use the non-standard PostgreSQL-specific escape string:
COPY my_table FROM 'c:\downloads\file.csv' DELIMITERS ',' CSV QUOTE E'\'';