Timescaledb更新致命:扩展“ timescaledb”版本不匹配:共享库版本1.6.1; SQL版本1.4.2

问题描述

服务器具有3个具有timescaledb的数据库 2更新好 但是3个有错误

do {
    System.out.println("You passed Catch-Block stage!,Please enter the number that you want to check if it is palindrome");

    String str = kbd.nextLine().trim();
    String org_str = str;
    String rev = "";
    int len = str.length();



        for (int i = len - 1; i >= 0; i--) {
            rev = rev + str.charAt(i);

        }
        if (org_str.equals(rev)) {
            System.out.println(org_str + " is Palindrome Number");

        } else {

            System.out.println(org_str + "is Not Palindrome String");

        }
        System.out.println("Do you want to continue Y or N");
        choice = kbd.nextLine().charAt(0); // <---here,change to nextLine()
    }while(choice=='y'||choice =='Y');


    }

在当前数据库上显示tsdb版本

psql -p 5433 -X -d rates
rates=# ALTER EXTENSION timescaledb UPDATE;
ERROR:  extension "timescaledb" version mismatch: shared library version 1.6.1; SQL version 1.4.2
CONTEXT:  parallel worker

解决方法

max_parallel_workers = 0

在postgresql.conf中并重新加载配置postgresq;

,

根据位于1.4.2和1.6.1之间的更新路径上的1.5.0版本的发行说明,有必要在执行更新之前重新启动实例。来自the release notes

仅对于此版本,您需要在运行之前重新启动数据库 扩展。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...