citusdata / citusdata/citus

Make shard name explicit in the metadata

Open
#4,910 0 comments 1 reaction 0 assignees View on GitHub
technical debt
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

So far, we always generate the shard name by combining the table name with the shard ID. It would be useful if the shard name was explicitly stored in the metadata, such that it can be a generic string.

This has two immediate benefits:
- Federation: Use user-defined tables as shards
- Fixing our long names issue for new tables https://github.com/citusdata/citus/issues/1664

A challenge lies in naming indexes and updating some of the RPC like worker_apply_ddl_command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.