Postgresql 更新Ubuntu上的TimescaleDB后出现Postgres错误:未找到文件

Postgresql 更新Ubuntu上的TimescaleDB后出现Postgres错误:未找到文件,postgresql,ubuntu,ubuntu-16.04,postgresql-9.6,timescaledb,Postgresql,Ubuntu,Ubuntu 16.04,Postgresql 9.6,Timescaledb,如中所述,我将Timescale PPA存储库添加到apt。然后我通过sudo-apt-install-timescaledb-postgresql-9.6安装了它。一切正常 通过最近运行的sudo apt升级,时间刻度包从0.8.0~ubuntu16.04更新为0.9.1~ubuntu16.04 在运行Python脚本插入一些新数据时,我现在遇到以下错误(没有插入任何内容): 似乎共享库的旧版本还在某个地方被引用在哪里? 我已经尝试过的: 更新脚本中用于访问的Python模块 我确保我的/e

如中所述,我将Timescale PPA存储库添加到
apt
。然后我通过
sudo-apt-install-timescaledb-postgresql-9.6
安装了它。一切正常

通过最近运行的
sudo apt升级
,时间刻度包从0.8.0~ubuntu16.04更新为0.9.1~ubuntu16.04

在运行Python脚本插入一些新数据时,我现在遇到以下错误(没有插入任何内容):

似乎共享库的旧版本还在某个地方被引用在哪里?

我已经尝试过的:

  • 更新脚本中用于访问的Python模块
  • 我确保我的
    /etc/postgresql/9.6/main/postgresql.conf
    仍然包含
    共享的预加载库='timescaledb'
  • 通过
    sudo服务postgrestart
    重新启动postgres服务
  • 重新启动机器
  • 我做了一个
    sudo apt清除timescaledb-postgresql-9.6
    ,然后重新启动、重新安装、重新启动服务
  • 当通过
    psql-U postgres-h localhost-W
    连接到psql时,执行
    \dx
    命令不会将timescaledb显示为已安装的扩展名;因此执行
    alterextensiontimescaledb更新不成功

    • 明白了<代码>更改扩展时间刻度数据库更新已关闭-但这必须在连接到的数据库上执行,而不是在登录到psql后立即全局执行。建议还传递
      -X
      参数以禁用读取启动文件(~/.psqlrc)

    • psql-X-U postgres-h localhost-W
    • \c您的时间刻度扩展数据库名称
    • ALTER EXTENSION timescaledb UPDATE
    • \dx
    • 输出:

                                          List of installed extensions
          Name     | Version |   Schema   |                            Description
      -------------+---------+------------+-------------------------------------------------------------------
      plpgsql     | 1.0     | pg_catalog | PL/pgSQL procedural language
      timescaledb | 0.9.1   | public     | Enables scalable inserts and complex queries for time-series data
      (2 rows)
      
    • \q
      退出psql
    •                                     List of installed extensions
          Name     | Version |   Schema   |                            Description
      -------------+---------+------------+-------------------------------------------------------------------
      plpgsql     | 1.0     | pg_catalog | PL/pgSQL procedural language
      timescaledb | 0.9.1   | public     | Enables scalable inserts and complex queries for time-series data
      (2 rows)