COPY中缺少postgres转储文件的列



转储文件*.sql给出错误

ERROR:  missing data for column "year"
CONTEXT:  COPY entity_temporal, line 1: "Stroud_railway_station {1947, 1845, 1886} {1, 1, 1}"

我的表名是entity_temporal,有三列Name textyear integer[]count integer[]。转储命令看起来像

COPY entity_temporal (name, year, count) FROM stdin;
Stroud_railway_station {1947, 1845, 1886} {1, 1, 1}

从我所看到的情况来看,您的数据格式不正确。每个列值新行的下一行之间应该有选项卡空间

你可以阅读这个问题,这个问题提供了包含正确数据格式的文件的链接。

最新更新