Postgres.app

Postgres.app contributors · 一款 Mac 應用,整合 PostgreSQL 伺服器、命令列工具和 PostGIS 擴充套件,並提供簡潔的伺服器管理介面。

Cask資料庫自帶更新Apple 晶片 · Intel
主頁
來自 homebrew/cask
近 30 天安裝
815
App榜第 263
近一年安裝
4730
365 天累計
最新版本
2.9.6
8月13日 · 8月13日
下載大小
533MB
arm64 / x86_64 · dmg
更新節奏
不定期
近 30 天 0 個版本

Postgres.app 是一款資料庫類 Mac 應用。開發者是 Postgres.app contributors。

基本資訊

晶片
Apple 晶片 · Intel
開發者
Postgres.app contributors
安裝命令
brew install --cask postgres-app
Homebrew
可以安裝,應用會自行更新
其他名稱
Postgres, postgres-unofficial, postgres-app

以上資訊最早核查於 。檢視各項來源

介紹

AI 翻譯檢視原文

Postgres.app 將 PostgreSQL 打包為標準的 Mac 應用程式。它提供圖形介面,用於初始化和管理本地資料庫伺服器,同時包含命令列工具以及 PostGIS 等受支援的擴充套件。

功能

  • 從應用程式中初始化並啟動本地 PostgreSQL 伺服器。
  • 管理捆綁發行版中受支援的 PostgreSQL 版本。
  • 使用內建的資料庫命令列工具和標頭檔案。
  • 使用捆綁的 PostGIS 及其他受支援的擴充套件。
  • 透過應用程式安裝可用的次版本更新。

設定與相容性

版本 2.9.6 要求 macOS 10.15 或更高版本。此軟體包使用 Universal 發行版,包含 PostgreSQL14 至18。初始化伺服器前,請將應用程式移至“應用程式”資料夾。如果要在終端中使用捆綁的命令,請單獨配置命令列 PATH;資料庫管理客戶端需另行選擇。

Postgres.app 免費且開源。更新前請備份資料庫,並區分次版本更新與主版本遷移。替換應用程式後,擴充套件可能還需要在資料庫層面執行更新步驟。請查閱所用 PostgreSQL 和 PostGIS 版本的官方發行說明。本地開發的便利性不能替代生產環境的安全與備份規劃。

來源:官方網站、官方下载、官方项目。

系統要求

macOS應用版本晶片下載來源
適用於 macOS 27, 26, 15, 14, 13, 12, 11 的版本2.9.6,14-15-16-17-18Intelgithub.com/PostgresApp/PostgresApp/releases/download/v2.9.6/Postgres-2.9.6-14-15-16-17-18.dmgSHA-256 ee67776540fb0d29cbd119ea4db4cac3c182349ed53048fdf79766a588ac86b3Homebrew核查於
適用於 macOS 27, 26, 15, 14, 13, 12, 11 的版本2.9.6,14-15-16-17-18Apple 晶片github.com/PostgresApp/PostgresApp/releases/download/v2.9.6/Postgres-2.9.6-14-15-16-17-18.dmgSHA-256 ee67776540fb0d29cbd119ea4db4cac3c182349ed53048fdf79766a588ac86b3Homebrew核查於

如何在 Mac 上安裝 Postgres.app

  1. 在“終端”中執行: brew install --cask postgres-app
  2. Homebrew 會把應用安裝到“應用程式”資料夾。

不用 Homebrew 安裝

直接下載 Homebrew 使用的同一個檔案: github.com/PostgresApp/PostgresApp/releases/download/v2.9.6/Postgres-2.9.6-14-15-16-17-18.dmg

SHA-256 只用來核對下載的檔案是否完整,不代表安全認證。 檢視 SHA-256 和下載地址

解除安裝 Postgres.app 與可選的資料清理

解除安裝命令
brew uninstall --cask postgres-app

普通解除安裝會刪除應用本身,設定和快取會保留。

解除安裝時還會處理

後臺服務(launchctl)
com.postgresapp.Postgres2LoginHelper

深度清理(可選)

解除安裝命令
brew uninstall --zap --cask postgres-app

--zap 還會刪除 Homebrew 定義裡列出的設定、快取等檔案,其中可能有其他應用共用的資料,刪除後無法恢復;它也不保證沒有任何殘留。請先備份需要保留的資料;如要保留設定和快取,請不要加 --zap。

Postgres.app 可能留在 Mac 上的檔案(4)
檔案和資料夾
~/Library/Application Support/Postgres
~/Library/Caches/com.postgresapp.Postgres2
~/Library/Cookies/com.postgresapp.Postgres2.binarycookies
~/Library/Preferences/com.postgresapp.Postgres2.plist

以上條目來自 Homebrew 定義,核查於 ;它們只說明定義宣告會刪除什麼,不代表你的 Mac 上都有。

2.9.6 更新內容

新版本 OpenNavo 編輯 · AI 翻譯

  • 變更包含 PostgreSQL 18.6、17.11、16.15、15.19 和 14.24。

Postgres.app 的安全事實

這裡只列可以核驗的事實,並註明來源和日期,不是安全認證。要檢查你下載的檔案,可以用 OpenNavo 在本機掃描。

分發渠道
Homebrew
用 OpenNavo 掃描會在 OpenNavo 客戶端中開啟掃描預覽,由你決定是否開始。 瞭解安全防護

安裝細節

來源倉庫
homebrew/cask
曾用 token
postgres-unofficial
下載地址
https://github.com/PostgresApp/PostgresApp/releases/download/v2.9.6/Postgres-2.9.6-14-15-16-17-18.dmg
SHA-256
ee67776540fb0d29cbd119ea4db4cac3c182349ed53048fdf79766a588ac86b3
Homebrew 定義檔案
github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb
formulae.brew.sh
formulae.brew.sh/cask/postgres-app
原始碼
github.com/PostgresApp/PostgresApp

安裝與解除安裝內容

  • 解除安裝 uninstall

    檢視完整宣告
    {
      "uninstall": [
        {
          "launchctl": "com.postgresapp.Postgres2LoginHelper",
          "quit": [
            "com.postgresapp.Postgres2",
            "com.postgresapp.Postgres2MenuHelper"
          ]
        }
      ]
    }
  • 安裝 app

    來原始檔: Postgres.app

    宣告的目標位置: /Applications/Postgres.app

    檢視完整宣告
    {
      "app": [
        "Postgres.app"
      ],
      "target": "/Applications/Postgres.app"
    }
  • 清理使用者資料 zap

    檢視完整宣告
    {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/Postgres",
            "~/Library/Caches/com.postgresapp.Postgres2",
            "~/Library/Cookies/com.postgresapp.Postgres2.binarycookies",
            "~/Library/Preferences/com.postgresapp.Postgres2.plist"
          ]
        }
      ]
    }

關於 Postgres.app 的常見問題

Postgres.app 安全嗎?

Postgres.app 收錄在 Homebrew 官方軟體庫中,沒有被停用。自 2026 年 9 月起,Homebrew 會停用沒有透過 macOS Gatekeeper 檢查的應用。安裝時,Homebrew 會用 SHA-256 校驗值核對來自 github.com 的安裝包。過去 30 天,它透過 Homebrew 安裝了 815 次。

怎樣在 Mac 上徹底解除安裝 Postgres.app?

執行 brew uninstall --cask postgres-app。它會退出應用、停止 1 個後臺服務。要連設定和快取一起刪除,執行 brew uninstall --zap --cask postgres-app。--zap 還會刪除 Homebrew 定義裡列出的設定、快取等檔案,其中可能有其他應用共用的資料,刪除後無法恢復;它也不保證沒有任何殘留。請先備份需要保留的資料;如要保留設定和快取,請不要加 --zap。這會再刪除 4 處檔案和資料夾,包括 ~/Library/Application Support/Postgres。

Postgres.app 支援 Apple 晶片(M1 及更新)的 Mac 嗎?

Apple 晶片和 Intel 晶片的 Mac 都能用 Homebrew 安裝,兩者使用同一個安裝包。

Postgres.app 的設定和資料儲存在哪裡?

設定儲存在 ~/Library/Preferences/com.postgresapp.Postgres2.plist。資料儲存在 ~/Library/Application Support/Postgres。這些位置來自 Homebrew 的清理清單。

Postgres.app 的最新版本是多少?

最新版本是 2.9.6,Homebrew 收錄於 8月13日。Postgres.app 會自動更新;想用 Homebrew 更新時,執行 brew upgrade --cask --greedy postgres-app。

來源

頁面上的每項資料都註明來源和核查日期;過期的資料只寫“截至”某日,不再當作當前事實。