mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
The binary etc were renamed some time ago, but the path in the source tree remained "attachment_service" to avoid disruption to ongoing PRs. There aren't any big PRs out right now, so it's a good time to cut over. - Rename `attachment_service` to `storage_controller` - Move it to the top level for symmetry with `storage_broker` & to avoid mixing the non-prod neon_local stuff (`control_plane/`) with the storage controller which is a production component.
13 lines
433 B
SQL
13 lines
433 B
SQL
CREATE TABLE tenant_shards (
|
|
tenant_id VARCHAR NOT NULL,
|
|
shard_number INTEGER NOT NULL,
|
|
shard_count INTEGER NOT NULL,
|
|
PRIMARY KEY(tenant_id, shard_number, shard_count),
|
|
shard_stripe_size INTEGER NOT NULL,
|
|
generation INTEGER NOT NULL,
|
|
generation_pageserver BIGINT NOT NULL,
|
|
placement_policy VARCHAR NOT NULL,
|
|
splitting SMALLINT NOT NULL,
|
|
-- config is JSON encoded, opaque to the database.
|
|
config TEXT NOT NULL
|
|
); |