Postgres已卸载,但psql --version仍显示结果

问题描述 投票:0回答:1

我需要在Macbook上安装新版本的psql,在卸载pg后,我尝试psql --version,它仍然显示“ psql(PostgreSQL)9.3.5。”

Pg 9.6已安装(未与Homebrew一起安装)。我能够卸载9.6。仍然说9.3.5已安装。但是我找不到属于任何Postgres应用程序的任何文件。

有什么方法可以100%卸载任何postgtres应用程序?

postgresql macos uninstall
1个回答
0
投票

在Mac上有多种安装Postgres的方式。

  1. 自制
  2. EnterpriseDB
  3. Postgres.app

因此,要卸载,您需要执行其他操作。

有不同的链接,我将在这里分享。

  1. 自制程序-brew uninstall postgresql命令可以。
  2. EnterpriseDB-https://stackoverflow.com/a/9240197/3413323
  3. Postgres.app-https://postgresapp.com/documentation/install.html

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.