简体   繁体   English

如何将数据库转储还原到Citus群集?

[英]How do I restore a database dump to a Citus cluster?

While restoring a ( pg_dump -produced) database dump, I get the following error: 还原( pg_dump生产的)数据库转储时,出现以下错误:

Cannot execute COPY FROM on a distributed table on master node 无法在主节点上的分布式表上执行COPY FROM

How can I work around this? 我该如何解决?

COPY support was added in Citus 5.1, which was released May 2016 and is available in the official PostgreSQL Linux package repositories (PGDG). COPY支持已在2016年5月发布的 Citus 5.1中添加,可在官方PostgreSQL Linux软件包系统信息库 (PGDG)中获得。

Are you trying to load data via a pg_dump output? 您是否正在尝试通过pg_dump输出加载数据? 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. 查看文档,以获取有关这两者的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM