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

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