I am facing some issue while copying data from csv to Postgres it’s converting Blank to NULL but sometimes it’s loading as blank only. So I want to load data as it is from csv to pg table (blank as blank and null as null and value as value)pg version is 6.9 and copy cmd which I am using is
Copy table_name from STDIN WITH (FORMAT csv,delimiter E’~’, Null ‘’)
Above copy cmd is loading data but replacing blank with Null(occasionaly) but I want to load exact data from csv to table. NOTE: column is blank no space no nothing and it’s varchar data type