gpt4 book ai didi

postgresql - 如何将数据库转储恢复到 Citus 集群?

转载 作者:行者123 更新时间:2023-11-29 12:59:57 25 4
gpt4 key购买 nike

在恢复(pg_dump-produced)数据库转储时,出现以下错误:

Cannot execute COPY FROM on a distributed table on master node

我该如何解决这个问题?

最佳答案

COPY 支持在 Citus 5.1 中添加,was released May 2016可在 the official PostgreSQL Linux package repositories 中找到(PGDG)。

您是否尝试通过 pg_dump 输出加载数据?创建分布式表与常规表略有不同,需要选择分区列和分区方法。看看the docs获取有关两者的更多信息。

关于postgresql - 如何将数据库转储恢复到 Citus 集群?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33123629/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com