About PostgreSQL
PostgreSQL is a feature-rich object-relational database management system covering a large part of the SQL standard. Its feature set includes transactions, foreign keys, subqueries, triggers, and user-defined types and functions, and the distribution also contains C language bindings. This GitHub repository is only a mirror of the official git repository, written in C, and the metadata lists the license as Other.
The project does not use GitHub pull requests; contributors submit patches through the process described on the PostgreSQL wiki. Copyright and license terms are in the COPYRIGHT file, general documentation for each version is published on the project site, and build instructions explain how to compile the server from source. The latest releases of the software and related software are available from the PostgreSQL website. Many hosting providers offer managed PostgreSQL, but the project itself is software you install and operate.
Key features
- Object-relational database with SQL support
- Transactions and foreign keys
- Subqueries and triggers
- User-defined types and functions
- C language bindings
- Documentation for building from source
Good fit for
- →General-purpose application database
- →Data storage for web and analytics workloads
- Built with
- C
- Tags
- database
- postgresql
- sql
- relational
- rdbms
- open-source
- object-relational
- transactions
PostgreSQL: questions and answers
- What is PostgreSQL used for?
- PostgreSQL is an object-relational database management system supporting SQL features such as transactions, foreign keys and triggers. It is a good fit for general-purpose application database, and data storage for web and analytics workloads.
- Is PostgreSQL open source?
- Yes. PostgreSQL is open source under a custom licence. Its source code is on GitHub at postgres/postgres and is written mainly in C.
- Is PostgreSQL free?
- Yes. PostgreSQL is open source, so the software itself is free to use under the terms of its own licence.
- Can I self-host PostgreSQL?
- Yes. PostgreSQL can be self-hosted on your own server or infrastructure.
- What is PostgreSQL an alternative to?
- PostgreSQL is an open-source alternative to Oracle Database, Microsoft SQL Server, IBM Db2 and PlanetScale. Other open-source alternatives to Oracle Database include MySQL and MariaDB.
- Is PostgreSQL actively maintained?
- Yes. The most recent commit to PostgreSQL was on 2 October 2026. The project has 22k stars on GitHub.
Open-source alternatives to PostgreSQL
See all
MySQL
Databases
MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-tim
OSSvs Oracle Database★ 12k
CloudNativePG
Databases
The most popular Kubernetes Operator for PostgreSQL.
Apache-2.0vs Amazon RDS★ 9.4k
MariaDB
Databases
MariaDB server is a community developed fork of MySQL server. Started by core members of t
GPL-2.0vs Oracle Database★ 8.3k
Autobase
Databases
Automated database platform for PostgreSQL® - Your own DBaaS.
MITvs Amazon RDS★ 4.4k
Neon
Databases
Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-lik
Apache-2.0vs Amazon Aurora★ 23k
YugabyteDB
Databases
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
OSSvs Google Cloud Spanner★ 11k
SaaS alternatives to PostgreSQL
See all
Oracle Database
Databases
Oracle relational database for enterprise transactional and analytical workloads
SaaS
Microsoft SQL Server
Databases
Microsoft relational database server with free Express and Developer editions
SaaS
IBM Db2
Databases
Enterprise relational database with SQL, AI-assisted queries and cloud deployment options
SaaS
PlanetScale
Databases
Managed MySQL and Postgres with branching workflows and online schema changes
SaaS
Amazon RDS
Databases
Managed relational databases on AWS for MySQL, PostgreSQL, SQL Server and Oracle
SaaS
Aiven
Databases
Managed service for running Postgres, MySQL, Kafka and other data systems in the cloud
SaaS

