http://www.postgresql.org/docs/9.1/static/sql-copy.html
copy finance.timportfrom '/home/bing/temp/201201x.csv'withcsvheaderdelimiter ','quote '"';There's an issue with the syntax in manual - 'format' keyword should not be there and is illegal, causes syntax error.