在云sql(GCP)上维护后pg_repack版本不匹配

我在 GCP 上有一个 cloud-sql postgres11 实例,并使用 pg_repack cron 来清理我的数据库。我注意到自从上次维护(3 月 21 日 7 日)以来,我无法执行重新打包。当尝试手动运行重新打包时,我遇到了以下错误消息:

错误:pg_repack 失败,错误:程序“pg_repack 1.4.4”与数据库库“pg_repack 1.4.6”不匹配

做了以下检查:

  • 加载的 pg_repack 版本是什么:
                                       List of installed extensions
        Name        | Version |   Schema   |                         Description
--------------------+---------+------------+--------------------------------------------------------------
 pg_repack          | 1.4.4   | public     | Reorganize tables in PostgreSQL databases with minimal locks
 pg_stat_statements | 1.6     | public     | track execution statistics of all SQL statements executed
 plpgsql            | 1.0     | pg_catalog | PL/pgSQL procedural language
(3 rows)
  • pg_repack 的可用版本是什么:
   name    | version | installed | superuser | relocatable | schema | requires |                           comment
-----------+---------+-----------+-----------+-------------+--------+----------+--------------------------------------------------------------
 pg_repack | 1.4.4   | t         | t         | f           |        |          | Reorganize tables in PostgreSQL databases with minimal locks
(1 row)

我将 pg_repack 升级到 1.4.6 版,但没有帮助,我也尝试删除并创建扩展,或者重新启动 sql 实例,但没有成功。:-(

我想知道是否有人遇到过这个问题。如果是这样,有什么解决办法吗?

以上是在云sql(GCP)上维护后pg_repack版本不匹配的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>