Install command:
brew install postgresql

Also known as: postgres, postgresql@13

Object-relational database system

License: PostgreSQL

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

Formula code on GitHub

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

Intel x86_64 big sur, catalina, mojave
Apple Silicon big sur

Current versions:

stable 13.1
head ⚡️ HEAD

Other versions:

postgresql@12 12.5 Object-relational database system
postgresql@11 11.10 Object-relational database system
postgresql@10 10.15 Object-relational database system
postgresql@9.6 9.6.20 Object-relational database system
postgresql@9.5 9.5.24 Object-relational database system
postgresql@9.4 9.4.26 Object-relational database system

Depends on:

icu4c 67.1 C/C++ and Java libraries for Unicode and globalization
krb5 1.18.3 Network authentication protocol
openssl@1.1 1.1.1i Cryptography and SSL/TLS Toolkit
readline 8.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 139,486
postgresql --HEAD 2
Installs on Request (30 days)
postgresql 134,257
postgresql --HEAD 2
Build Errors (30 days)
postgresql 19
Installs (90 days)
postgresql 533,735
postgresql --HEAD 12
PostgreSQL 2
postgresql --without-tcl 1
Installs on Request (90 days)
postgresql 515,222
postgresql --HEAD 12
PostgreSQL 2
Installs (365 days)
postgresql 2,041,106
postgresql --HEAD 77
PostgreSQL 11
postgresql --without-tcl 6
Installs on Request (365 days)
postgresql 1,966,006
postgresql --HEAD 76
PostgreSQL 7
Fork me on GitHub