The schema, name, existing constraints, and indexes of chunk do not change, even
if a constraint conflicts with a constraint in hypertable.
The hypertable you attach chunk to does not need to have the same dimension columns as the
you previously detached chunk from.
While attaching chunk to hypertable:
- Dimension columns in
chunkare set asNOT NULL. - Any foreign keys in
hypertableare created inchunk.
- Attaching a that is still attached to another . First call detach_chunk.
- Attaching foreign tables are not supported.
Samples
Attach a as a in another for a specific slice in a dimension:Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hypertable | REGCLASS | - | ✔ | Name of the to attach chunk to. |
chunk | REGCLASS | - | ✔ | Name of the to attach. |
slices | JSONB | - | ✔ | The slice chunk will occupy in hypertable. slices cannot clash with the slice already occupied by an existing in hypertable. |