-
Notifications
You must be signed in to change notification settings - Fork 968
Description
I know I can do a backup with timescale db (here), but my use case is different. I want to export data from a table, with the COPY FROM instruction in sql :
COPY (SELECT * FROM sensor_climate) TO '/data_export/sensor_climate.bak' With CSV quote
and then insert those data in another database:
COPY sensor_climate FROM '/data_export/sensor_climate.bak' DELIMITER ',' CSV;
But it does not work with an hypertable ! There is only a generic error message, and it works perfectly with other tables (wich are non-hypertables).
[Edit] The error message I get:
fuldatabase=# copy sensor_climate from '/shared_volume/sensor_climate.bak' csv quote;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
Also, the server tells me:
Server process (PID xx) was terminated by signal 11
If you see a better way to do what I want, please tell me. However, if timescaledb is built for IOT, it is a really important feature being able to export data easily.
For example I have some sensors in a location A with a timescaledb A, and other sensors in a different location B with timescaledb B. I need to export data periodically on a timescaledb C. Actually, it seems that I can't do that.