数据库:PostgreSQL加载timescaledb拓展异常FATAL: extension "timescaledb" must be preloaded

FATAL:  extension "timescaledb" must be preloaded
提示:  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.)

If you REALLY know what you are doing and would like to load the library without preloading, you can disable this check with:
        SET timescaledb.allow_install_without_preload = 'on';

翻译如下:简单来说,就是在postgresql.conf添加shared_preload_libraries=‘timescaleDB’,然后在服务那里重启PostgreSQL 11服务。。

      这可以通过在:c:/program files/postgresql/11/data/postgresql.conf编辑配置文件来完成。

并将“TimescaleDB”添加到共享的“预加载库”配置中的列表中。

#修改postgresql.conf:

shared_preload_libraries='timescaleDB'



另一种方法是,如果不预加载其他库,则使用以下命令:

echo“shared_preload_libraries='timescaledb'”>>c:/program files/postgresql/11/data/postgresql.conf



(需要重新启动数据库。)
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值