带有时间刻度升级的 postgresql

标签 postgresql timescaledb pg-upgrade

我安装了 Postgresql 9.6.11,其中安装了 Timescale 1.1.1 的共享库。我正在尝试升级它们,对 Timescale 使用就地升级,对 Postgres 使用 pg_upgrade,即将 Postgresql 升级到 11.5,将 Timescale 升级到 1.4。我应该先升级哪个?我首先成功升级了 Timescale,然后我尝试继续进行 pg_upgrade,但我遇到了错误 pg_restore: [archiver (db)] 来自 TOC 条目 1012 的错误; 1259 24224 表 cache_inval_extension 我想知道我是否应该安装带有 Timescale 1.1.1 的 Postgresql 11.5。然后使用 pg_upgrade,然后就地进行时间刻度。

最佳答案

我在尝试后了解到,您可以采用任何一种方式。您只需要在运行 pg_upgrade 时使用命令 -O "-c timescaledb.restoring='on'" 让 timescale 知道升级正在进行中。

关于带有时间刻度升级的 postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58331431/

相关文章:

sql - 没有行的 Timescaledb time_bucket 获取周期

ruby-on-rails - 将大 json 文件存储在数据库中的最佳方式(postgres 或 mongo)

postgresql - kubernetes timescaledb statefulset : Changes lost on pod recreation

mysql - 选择所有具有非空关联记录的记录

postgresql - timescaledb 是否有一种技术可以删除行以减少旧时间刻度数据的频率?

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

python - 使用 pg_upgrade 从 11.1 升级到 11.6 的 postgres 问题

postgresql - pg_upgradecluster 花费太多时间(165GB 数据库大约需要 8 小时)有什么解决方法吗?

sql - 在 PostgreSQL 中获取时间戳年份

postgresql - 了解 postgres 解释 w/位图堆/索引扫描