I have the following command that reads and insert from stdin in a SQL file:
COPY test_table (id, col1, col2) FROM stdin DELIMITER ',' ;
1, "",,
2, "",,
as above the col1 values should be treated as empty string but instead I get an error:
null value in column "col1" violates not null constraint