Create foreign keys in a distributed hypertable
Tables and values referenced by a distributed hypertable must be present on the access node and all data nodes. To create a foreign key from a distributed hypertable, use distributed_exec to first create the refererenced table on all nodes.
Creating foreign keys in a distributed hypertable
- Create the referenced table on the access node.
- Use distributed_exec to create the same table on all data nodes and update it with the correct data.
- Create a foreign key from your distributed hypertable to your referenced table.
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .