history_bin
表已在 TimescaleDB 上转换为超表,以受益于基于时间的自动分区(默认情况下为 1 天)和更好的性能。
要成功升级现有安装:
postgresql/timescaledb/schema.sql
脚本(自 Zabbix 7.0.0 起,该脚本的位置和名称已从postgresql/timescaledb.sql
更改为postgresql/timescaledb/schema.sql
)。 请注意,如果在未运行此脚本的情况下启动 Zabbix 服务器,服务器将记录一个警告。另请参阅:
Using pg_restore
to restore a PostgreSQL/TimescaleDB backup created in Zabbix 7.0.0-7.0.4 will result in a missing base36_decode
function error, causing the restore to fail. This error occurs when restoring a backup created with pg_dump
.
See known issues for details on fixing this issue manually before creating the backup.
If you have not upgraded to Zabbix 7.0.0 yet, note that there should be no such issues for upgrades from pre-7.0 Zabbix versions to 7.0.5. For upgrade instructions, see Upgrading TimescaleDB schema.