(Postgres) ERROR: could not access file "$libdir/uuid-ossp": No such file or directory

(Postgres) ERROR: could not access file "$libdir/uuid-ossp": No such file or directory

我今天通过 运行ning brew install curl 在我的机器上安装了 curl,它安装了 curl,但最终也更新了一堆其他软件包,包括我的 postgres(我使用的是 postgresql12)

我最终 运行 插入任何插入语句(这将自动插入一个主键),我得到这个错误:

[58P01] ERROR: could not access file "$libdir/uuid-ossp": No such file or directory

当我运行select * from pg_extension时,我看到我安装了uuid-ossp作为扩展,所以我不知道为什么它找不到这个。

我正在使用 MacOS

这不是我问题的答案,因为我去了最后的手段,但我最终只是重新安装了 postgres:https://bitadj.medium.com/completely-uninstall-and-reinstall-psql-on-osx-551390904b86

我仍然希望听到有关此事的其他答案,因为除非绝对必要,否则我不会推荐我的答案