Alter a hypertable
You can execute standard ALTER TABLE
commands against the hypertable (PostgreSQL docs).
ALTER TABLE conditions
ADD COLUMN humidity DOUBLE PRECISION NULL;
TimescaleDB will then automatically propagate these schema changes to the chunks that constitute this hypertable.
warning
Altering a table’s schema is quite efficient provided that the default value for any additional column is set to NULL. If the default is set to a non-null value, TimescaleDB will need to fill in this value for all rows (of all chunks) belonging to this hypertable.
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .