【发布时间】:2021-08-31 10:26:24
【问题描述】:
我正在将 postgresql .csv 文件转储到表中,但出现以下错误
使用 csv 从“C:\Program Files\PostgreSQL\13\data\log\postgresql-2021-06-15_191640.csv”复制 postgres_log;
ERROR: extra data after last expected column
CONTEXT: COPY postgres_log, line 1: "2021-06-15 19:16:40.261 IST,,,5532,,60c8af3f.159c,1,,2021-06-15 19:16:39 IST,,0,LOG,00000,"ending lo..."
SQL state: 22P04
我遵循了以下 postgresql 文档 https://www.postgresql.org/docs/10/runtime-config-logging.html 请建议,如何在表中转储
【问题讨论】: