我正在尝试显示超级表信息,但似乎无法访问信息表。
此请求成功
select * from _timescaledb_catalog.hypertable;但是这个不存在,说这个表不存在:
select * from timescaledb_information.hypertable;正如预期的那样,创建超级表不会有任何不同。
前面的命令是在https://github.com/timescale/timescaledb/issues/648中找到的,我可以理解它是否已经过时,因为用户参考了0.10文档。
后者来自文档:https://docs.timescale.com/latest/api#utilities,所以它应该可以工作。
我使用的是Timescale DB 2.2.0 (官方时间刻度存储库)和PostgreSQL 11 (Debian存储库)。
发布于 2021-04-14 18:50:42
timescaledb_information.hypertable是此信息视图的旧名称。从2.0开始,所有信息视图在名称中使用复数而不是单数。因此,此信息视图被重命名为timescaledb_information.hypertables。它的定义也更新了,请在docs中查看它。
下面的查询应该可以在2.2.0中使用:
select * from timescaledb_information.hypertables;我还建议检查一下overall changes in 2.0。
https://stackoverflow.com/questions/67089109
复制相似问题