timescaledb-parallel-copy | parallel copying of CSV data | Command Line Interface library
kandi X-RAY | timescaledb-parallel-copy Summary
kandi X-RAY | timescaledb-parallel-copy Summary
timescaledb-parallel-copy is a command line program for parallelizing PostgreSQL's built-in COPY functionality for bulk inserting data into TimescaleDB.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of timescaledb-parallel-copy
timescaledb-parallel-copy Key Features
timescaledb-parallel-copy Examples and Code Snippets
Community Discussions
Trending Discussions on timescaledb-parallel-copy
QUESTION
I'm trying to install TimeScaleDB using Docker Compose, but I get the following error when importing data using timescaledb-parallel-copy :
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/import_data.sh timescaledb | panic: could not connect: dial tcp 172.18.0.2:5432: connect: connection refused timescaledb | timescaledb | goroutine 6 [running]: timescaledb | main.processBatches(0xc000016730, 0xc000060780) timescaledb | /go/src/github.com/timescale/timescaledb-parallel-copy/cmd/timescaledb-parallel-copy/main.go:238 +0x8bb timescaledb | created by main.main timescaledb | /go/src/github.com/timescale/timescaledb-parallel-copy/cmd/timescaledb-parallel-copy/main.go:148 +0x1d2 timescaledb | panic: could not connect: dial tcp 172.18.0.2:5432: connect: connection refused
Here's my docker compose and my docker file :
Docker compose :
...ANSWER
Answered 2022-Jan-12 at 09:19Edit : Problem solved. The host should not be specified in the connection string. According to the official documentation (https://hub.docker.com/_/postgres) :
Also, as of docker-library/postgres#440, the temporary daemon started for these initialization scripts listens only on the Unix socket, so any psql usage should drop the hostname portion (see docker-library/postgres#474 (comment) for example).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install timescaledb-parallel-copy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page