Install command:
brew install postgresql

Also known as: postgres, postgresql@14

Object-relational database system

License: PostgreSQL

/api/formula/postgresql.json (JSON API)

/api/bottle/postgresql.json (Bottle JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

Intel big sur
64-bit linux
Apple Silicon big sur

Current versions:

stable 14.0
head ⚡️ HEAD

Other versions:

postgresql@13 13.4 Object-relational database system
postgresql@12 12.8 Object-relational database system
postgresql@11 11.13 Object-relational database system
postgresql@10 10.18 Object-relational database system
postgresql@9.6 9.6.23 Object-relational database system
postgresql@9.5 9.5.25 Object-relational database system
postgresql@9.4 9.4.26 Object-relational database system

Depends on:

icu4c 69.1 C/C++ and Java libraries for Unicode and globalization
krb5 1.19.2 Network authentication protocol
openssl@1.1 1.1.1l Cryptography and SSL/TLS Toolkit
readline 8.1.1 Library for command-line editing

Depends on when building from source:

pkg-config 0.29.2 Manage compile and link flags for libraries
To migrate existing data from a previous major version of PostgreSQL run:
    brew postgresql-upgrade-database

This formula has created a default database cluster with:
    initdb --locale=C -E UTF-8 $(brew --prefix)/var/postgres
For more details, read:


Installs (30 days)
postgresql 133,933
postgresql --HEAD 11
Installs on Request (30 days)
postgresql 128,790
postgresql --HEAD 11
Build Errors (30 days)
postgresql 38
postgresql --HEAD 1
Installs (90 days)
postgresql 326,779
postgresql --HEAD 27
Installs on Request (90 days)
postgresql 312,141
postgresql --HEAD 27
Installs (365 days)
postgresql 1,754,585
postgresql --HEAD 68
Installs on Request (365 days)
postgresql 1,681,109
postgresql --HEAD 68
Fork me on GitHub