无法显示超表信息:timescaledb_information.hypertable 不存在

Jér*_*ôme 0 postgresql timescaledb

我正在尝试显示超表信息,但似乎无法访问信息表。

此请求成功

select * from _timescaledb_catalog.hypertable;
Run Code Online (Sandbox Code Playgroud)

但这个没有,说该表不存在:

select * from timescaledb_information.hypertable;
Run Code Online (Sandbox Code Playgroud)

正如预期的那样,创建超级表没有任何区别。

前一个命令可以在https://github.com/timescale/timescaledb/issues/648中找到,我会理解它是否已过时,因为用户参考了 0.10 文档。

后者来自文档: https: //docs.timescale.com/latest/api#utilities所以它应该可以工作。

我正在使用 Timescale DB 2.2.0(官方 Timescale 存储库)和 PostgreSQL 11(Debian 存储库)。

k_r*_*rus 8

timescaledb_information.hypertable是此信息视图的旧名称。从 2.0 开始,所有信息视图的名称均使用复数而不是单数。所以这个信息视图被重命名为timescaledb_information.hypertables. 它的定义也更新了,请参阅文档

以下查询应在 2.2.0 中运行:

select * from timescaledb_information.hypertables;
Run Code Online (Sandbox Code Playgroud)

我还建议检查2.0 中的整体变化