我使用的是Linux16.04版本的PostgreSQL。我在里面安装了时标。
在我试图通过new_observation将巨大的数据插入到名为observation.csv it的超表中之后,通过大约5GB的数据进行复制,而我只需简单地复制命令,我就会得到更多的错误后词--我看到了另一种方法从go并行复制复制巨大的数据,所以我只是安装了go并尝试了这样的方法:
go get github.com/timescale/timescaledb-parallel-copy
gopal@addontrack:~$ timescaledb-parallel-copy --db-name testat --
schema web --table new_observation --file /tmp/observation.csv \ --
workers 2 --reporting-period 30s恐慌: pq:用户"postgres“密码验证失败 /home/gopal/.go/src/github.com/jmoiron/sqlx/sqlx.go:652 +0x83 main.processBatches(0xc420080250,0xc42001e080,0x3a,0x0)( 0xc42008a060) /home/gopal/.go/src/github.com/timescale/timescaledb-parallel-copy/main.go:180 +0x63由main.main /home/gopal/.go/src/github.com/timescale/timescaledb-parallel-copy/main.go:105 +0x178创建
当我试图以这种方式复制数据时,我得到了这个错误。
发布于 2018-04-15 09:29:41
默认情况下,postgres用户没有密码。但是您的服务器似乎需要密码身份验证。
时间升级b-并行复制脚本假定其连接默认值的默认配置,但可以用连接标志覆盖它们。
默认值:
"host=localhost user=postgres sslmode=disable"新命令(未经测试):
gopal@addontrack:~$ timescaledb-parallel-copy \
--connection host=localhost user=postgres password=super-secret sslmode=disable \
--db-name testat --schema web --table new_observation \
--file /tmp/observation.csv --workers 2 --reporting-period 30s https://stackoverflow.com/questions/49692433
复制相似问题