Every day, I set \encoding SQL_ASCII on server B (server A is SQL_ASCII) and use \copy with the csv flag to upload yesterday's log file to the table. For months, this has worked flawlessly until 12th October. The import failed with a message: postgres=# \copy maincluster_log FROM maincluster-20131011.csv CSV ERROR: extra data after last expected column CONTEXT: COPY maincluster_log, line 424855: "2013-10-11 15:58:59.463 BST,"apachemitre","course_records",30875,"[local]",52581233.789b,3,"idle",20..."
The failing line, I will give at the end because it is long.
PostgreSQL version on both servers is 8.4, running on CentOS 6.3.
Please, does anyone have some insight into why this fails?