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 big sur
Apple Silicon big sur

Current versions:

stable 13.2
head ⚡️ HEAD

Other versions:

postgresql@12 12.6 Object-relational database system
postgresql@11 11.11 Object-relational database system
postgresql@10 10.16 Object-relational database system
postgresql@9.6 9.6.21 Object-relational database system
postgresql@9.5 9.5.25 Object-relational database system
postgresql@9.4 9.4.26 Object-relational database system

Revision: 1

Depends on:

icu4c 68.2 C/C++ and Java libraries for Unicode and globalization
krb5 1.19.1 Network authentication protocol
openssl@1.1 1.1.1k 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 159,653
postgresql --HEAD 1
Installs on Request (30 days)
postgresql 153,438
postgresql --HEAD 1
Build Errors (30 days)
postgresql 30
Installs (90 days)
postgresql 517,315
postgresql --HEAD 8
Installs on Request (90 days)
postgresql 497,230
postgresql --HEAD 8
Installs (365 days)
postgresql 2,270,216
postgresql --HEAD 63
PostgreSQL 9
postgresql --without-tcl 5
Installs on Request (365 days)
postgresql 2,191,043
postgresql --HEAD 62
PostgreSQL 6
Fork me on GitHub