当我在我的ubuntu19.10机器上运行$ sudo timescaledb-tune命令时,它会提示
无法执行pg_config --version:退出状态%1
我也尝试过$ sudo timescaledb-tune --conf-path=/etc/postgresql/11/main/postgresql.conf
但是msg是一样的
我不知道该怎么做
发布于 2020-05-02 00:54:41
Timescale DB Tune使用pg_config来发现计算机上运行的Postgres版本。
您可以使用 -pg-config 标志来定义 pg_config 的路径或使用 -pg-version 标志提供 Postgres 版本。
下面是有关这些标志的更多详细信息,您可以通过运行以下命令找到这些标志
$ timescaledb-tune -h
-pg-config string
Path to the pg_config binary (default "pg_config")
-pg-version string
Major version of PostgreSQL to base recommendations on. Default is determined via pg_config. Valid values: 12, 11, 10, 9.6发布于 2020-06-24 01:16:11
此外,因为我在/ data_directory /pgdata设置自定义数据路径时遇到了非常类似的情况:
sudo timescaledb tune -pg-config=/usr/pgsql-11/bin/pg_config -pg-version=11 -conf-path=/data/pgdata
它终于成功了:
Using postgresql.conf at this path:
/data/pgdata/postgresql.conf
Writing backup to:
/tmp/timescaledb_tune.backup202006231314
shared_preload_libraries needs to be updated
Current:
#shared_preload_libraries = ''
Recommended:
shared_preload_libraries = 'timescaledb'https://stackoverflow.com/questions/61541095
复制相似问题