I have a table with a column of type "timestamp with timezone"
I'm importing data from a file with this command
db=# COPY "temperature" FROM 'd:\data\PostgresImport\TEMPLOG.CSV' DELIMITER ',' CSV;
I get this error
ERROR: malformed array literal: "2009-01-05 18:40:00 z"
DETAIL: Array value must start with "{" or dimension information.
CONTEXT: COPY temperature, line 1, column timestamp: "2009-01-05 18:40:00 z"
I tried re-formatting the source data to show the timezone as +0000, but I still get the same error:
ERROR: malformed array literal: "2009-01-05 18:40:00+0000"
DETAIL: Array value must start with "{" or dimension information.
CONTEXT: COPY temperature, line 1, column timestamp: "2009-01-05 18:40:00+0000"