初次使用时序表,还没用起来,记录遇到的问题
1、cannot create a unique index without the column ‘xxx’
创建好普通表后,将其转换为超表
命令:SELECT create_hypertable('message.device_warning_info', 'fault_time');
报错信息如下:
cannot create a unique index without the column "fault_time" (used in partitioning)
报错原因:
建立超表时,要求原表不能存在唯一索引或唯一索引必须包含时间列(也就是上面的fault_time字段)