# Postgres.app

一款 Mac 应用，集成 PostgreSQL 服务器、命令行工具和 PostGIS 扩展，并提供简洁的服务器管理界面。

> 这是 OpenNavo 上 Postgres.app 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/postgres-app>

- **最新版本**: `3.0,14-15-16-17-18-19`
- **开发者**: Postgres.app contributors
- **主页**: <https://postgresapp.com/>
- **分类**: [数据库](https://opennavo.com/zh/categories/databases)
- **安装**: `brew install --cask postgres-app`
- **近 30 天安装**: 713
- **Homebrew**: 可以安装，应用会自行更新
- **曾用 token**: postgres-unofficial
- **下载地址**: <https://github.com/PostgresApp/PostgresApp/releases/download/v3.0/Postgres-3.0-14-15-16-17-18-19.dmg>
- **SHA-256**: `23b479f2c89cd1c3f16bb055424b0624405583007568912ee11268ee5b8a6c9d`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "launchctl": "com.postgresapp.Postgres2LoginHelper",
          "quit": "com.postgresapp.Postgres2"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "app": [
        "Postgres.app"
      ],
      "target": "/Applications/Postgres.app"
    },
    "phase": "install",
    "sources": [
      "Postgres.app"
    ],
    "target": "/Applications/Postgres.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/Postgres",
            "~/Library/Caches/com.postgresapp.Postgres*",
            "~/Library/Cookies/com.postgresapp.Postgres*.binarycookies",
            "~/Library/HTTPStorages/com.postgresapp.Postgres*",
            "~/Library/Preferences/com.postgresapp.Postgres*.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Postgres.app 将 PostgreSQL 打包为标准的 Mac 应用程序。它提供图形界面，用于初始化和管理本地数据库服务器，同时包含命令行工具以及 PostGIS 等受支持的扩展。

### 功能
- 从应用程序中初始化并启动本地 PostgreSQL 服务器。
- 管理捆绑发行版中受支持的 PostgreSQL 版本。
- 使用内置的数据库命令行工具和头文件。
- 使用捆绑的 PostGIS 及其他受支持的扩展。
- 通过应用程序安装可用的次版本更新。

### 设置与兼容性
版本 2.9.6 要求 macOS 10.15 或更高版本。此软件包使用 Universal 发行版，包含 PostgreSQL14 至18。初始化服务器前，请将应用程序移至“应用程序”文件夹。如果要在终端中使用捆绑的命令，请单独配置命令行 PATH；数据库管理客户端需另行选择。

Postgres.app 免费且开源。更新前请备份数据库，并区分次版本更新与主版本迁移。替换应用程序后，扩展可能还需要在数据库层面执行更新步骤。请查阅所用 PostgreSQL 和 PostGIS 版本的官方发行说明。本地开发的便利性不能替代生产环境的安全与备份规划。

来源：[官方网站](https://postgresapp.com/)、[官方下载](https://postgresapp.com/downloads.html)、[官方项目](https://github.com/PostgresApp/PostgresApp)。

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 3.0,14-15-16-17-18-19 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 核查于 2026-11-30
  - <https://github.com/PostgresApp/PostgresApp/releases/download/v3.0/Postgres-3.0-14-15-16-17-18-19.dmg>
  - SHA-256: `23b479f2c89cd1c3f16bb055424b0624405583007568912ee11268ee5b8a6c9d`
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 3.0,14-15-16-17-18-19 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 核查于 2026-11-30
  - <https://github.com/PostgresApp/PostgresApp/releases/download/v3.0/Postgres-3.0-14-15-16-17-18-19.dmg>
  - SHA-256: `23b479f2c89cd1c3f16bb055424b0624405583007568912ee11268ee5b8a6c9d`

## 卸载

- `brew uninstall --cask postgres-app`

普通卸载会删除应用本身，设置和缓存会保留。

### 卸载时还会处理

- 后台服务（launchctl）: `com.postgresapp.Postgres2LoginHelper` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask postgres-app`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Support/Postgres` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.postgresapp.Postgres*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Cookies/com.postgresapp.Postgres*.binarycookies` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/com.postgresapp.Postgres*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.postgresapp.Postgres*.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-30；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 10.2 (2018-02-14)

This is the legacy version of Postgres.app for computers running macOS 10.7 or later. This release has the old user interface and contains a single version of PostgreSQL. We provide this binary so users who don't want to upgrade their Mac can still use up to date versions of PostgreSQL.

This release contains:
- PostgreSQL 10.2
- PostGIS 2.4.3

## 资料与来源

- <https://opennavo.com/zh/apps/postgres-app>
- <https://opennavo.com/zh/apps/postgres-app/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/postgres-app.rb> · 核查于 2026-11-30
- <https://formulae.brew.sh/cask/postgres-app>
