Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I restore a database dump to a Citus cluster?

While restoring a (pg_dump-produced) database dump, I get the following error:

Cannot execute COPY FROM on a distributed table on master node

How can I work around this?


1 Answers

COPY support was added in Citus 5.1, which was released May 2016 and is available in the official PostgreSQL Linux package repositories (PGDG).

Are you trying to load data via a pg_dump output? Creating distributed tables is slightly different than regular tables, and requires picking of partition columns and partitioning method. Take a look at the docs to get more information on both.

like image 65
Sumedh Avatar answered Dec 30 '25 23:12

Sumedh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!