I’m trying to import text arrays and hstore values into Postgres from a CSV (actually TSV) spreadsheet, but I keep getting multiples of these two errors:
ERROR: Syntax error near '}' at position 667
ERROR: malformed array literal: "" Detail: Array value must start with "{" or dimension information.
My text arrays look like this: {hello, world}
and my hstore values look like this: {"hello" => "world", "goodbye" => "world"}
I'm not using the COPY
command, I'm importing the file either through my IDE (Goland) database navigator or through Postico 2. What is the proper syntax for array and hstore data in a CSV or TSV spreadsheet for importing into Postgres?