【发布时间】: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'
我在这里做错了什么????
【问题讨论】: