【问题标题】:PostgrSQL Create extension timescalePostgreSQL 创建扩展时间刻度
【发布时间】:2020-03-19 05:14:17
【问题描述】:

您好,我只是无法在 PostgreSQL 中安装 timescaledb 扩展。

CREATE EXTENSION timescaledb
    VERSION "1.6.0";

保存后;留言"Connection to Server has been lost"

Google 没有提供帮助;已经尝试了几个小时...帮助!!!!

== Saving changes to: C:\Program Files\PostgreSQL\11\data\postgresql.conf
2020/03/18 21:39:26 Installing TimescaleDB library files...
2020/03/18 21:39:26 Success!
2020/03/18 21:39:26 Installing TimescaleDB control file...
2020/03/18 21:39:26 Success!
2020/03/18 21:39:26 Installing TimescaleDB SQL files...
2020/03/18 21:39:26 Success!
TimescaleDB installation completed successfully.

试图在 Shell 中创建扩展给了我:

localdb=# CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
FATAL:  extension "timescaledb" must be preloaded
TIP:  Please preload the timescaledb library via shared_preload_libraries.

This can be done by editing the config file at: C:/Program Files/PostgreSQL/11/data/postgresql.conf
and adding 'timescaledb' to the list in the shared_preload_libraries config.
        # Modify postgresql.conf:
        shared_preload_libraries = 'timescaledb'

Another way to do this, if not preloading other libraries, is with the command:
        echo "shared_preload_libraries = 'timescaledb'" >> C:/Program Files/PostgreSQL/11/data/postgresql.conf

(Will require a database restart.)

shared_preload_libraries = 'timescaledb' 已添加到列表中……

postgresql.conf 文件:

# - Shared Library Preloading -

shared_preload_libraries = 'timescaledb'    

#local_preload_libraries = 'timescaledb'
#session_preload_libraries = 'timescaledb'
#jit_provider = 'llvmjit'       # JIT library to use

# - Other Defaults -

#dynamic_library_path = '$libdir'

我在这里做错了什么????

【问题讨论】:

    标签: postgresql timescaledb


    【解决方案1】:

    需要更多信息。您如何/在哪里安装了 TimescaleDB?当您省略版本字符串时会发生什么?例如,

    CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;

    您在日志中看到了什么吗?

    【讨论】:

    猜你喜欢
    • 2013-08-08
    • 2017-09-26
    • 1970-01-01
    • 2020-02-08
    • 2013-09-12
    • 2016-01-04
    • 2020-05-09
    • 1970-01-01
    • 2013-11-05
    相关资源
    最近更新 更多