CocoaEngineering
FORMULAv18.7

postgresql@18 for macOS

Object-relational database system

Installation on macOS (Apple Silicon & Intel)

brew install postgresql-18

Package Metadata

Identifierpostgresql-18
Current Version18.7
Tap Repositoryhomebrew/core
LicensePostgreSQL
Upstream Homepagehttps://www.postgresql.org/
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (7)

icu4c@79 krb5 lz4 openssl@4 readline zstd gettext

Build Dependencies (4)

docbook docbook-xsl gettext pkgconf

Engineering Caveats

This formula has created a default database cluster with:
  initdb --locale=en_US.UTF-8 -E UTF-8 $HOMEBREW_PREFIX/var/postgresql@18

When uninstalling, some dead symlinks are left behind so you may want to run:
  brew cleanup --prune-prefix

If the service fails to start with a "postmaster.pid" lock file error after
an unclean shutdown, and no postgres is running, remove the stale file:
  rm $HOMEBREW_PREFIX/var/postgresql@18/postmaster.pid
Browse macOS Packages A–Z