I run this command:
COPY XXX FROM \'D:/XXX.csv\' WITH (FORMAT CSV, HEADER TRUE, NULL \'NULL\')
In Windows 7, it successfully imports CSV f
It seems this is not a database problem, but a problem of psql / pgadmin. The workaround is using an admin software from the previous psql versions:
Hope this helps anyone coming across the same problem.