【问题标题】:Issue loading extension in postres after Homebrew MacOS installHomebrew MacOS 安装后在 postgres 中加载扩展问题
【发布时间】:2019-06-03 17:25:09
【问题描述】:

我最近在 MacOSX Mojave 上使用 Homebrew 安装了 Postgres 11.3。我想使用 TimescaleDB 扩展数据库,也安装了 Homebrew,但收到以下错误:

tutorial=# CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
ERROR:  could not open extension control file "/Library/PostgreSQL/11/share/postgresql/extension/timescaledb.control": No such file or directory

看起来该命令希望 Postgres 安装在 /Library 中,但 brew info postgres 说它位于 /usr/local/Cellar/postgresql/11.3。有没有办法可以修改命令使用的路径或更改 Postgres 的安装位置?

【问题讨论】:

  • 您应该将此问题报告给 TimescaleDB 开发人员。他们可能不得不修改timescaledb formula

标签: postgresql homebrew timescaledb


【解决方案1】:

发现我有一个以前版本的 postgres,但我没有完全卸载。

即使在brew remove postgres 之后,活动监视器中仍有许多 postgres 进程在运行。我杀死了 PID 最低的那个,重新启动计算机并通过 Homebrew 重新安装了 postgres。

我现在可以按预期扩展数据库。

【讨论】:

    猜你喜欢
    • 2021-11-20
    • 1970-01-01
    • 2020-08-27
    • 1970-01-01
    • 2018-04-09
    • 1970-01-01
    • 2013-01-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多