Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 citus 数据来分片我的 postgres 数据库。在进入它之前,我想充分了解它在不同场景中的行为。尽管文档解释了大多数情况。
我想知道当我更新tenant_id记录时如何将数据移动到不同的分片?
tenant_id
当您尝试更新分区列的值时,Citus 会出错。您可以在事务内移动数据,INSERT INTO ... SELECT ...后跟a。DELETE FROM ...
INSERT INTO ... SELECT ...
DELETE FROM ...