PostgreSQL is an open-source RDBMS released under the permissive PostgreSQL License, making it free for personal and commercial use.
Yes. PostgreSQL’s source code is available under the PostgreSQL License, a permissive OSI-approved licence that allows free use, modification, and distribution—even in closed-source commercial products.
The PostgreSQL License is similar to MIT/BSD. It imposes only two requirements: keep the copyright notice and license text in source distributions, and hold contributors harmless from liability.
Absolutely. You may embed PostgreSQL in SaaS platforms, ship it with on-prem software, or host it for clients without paying fees or releasing your proprietary code.
Attribution is required only when you distribute PostgreSQL source or binary itself. Your application’s marketing site or UI need not mention PostgreSQL.
Installers and package managers provide gratis binaries. Example: brew install postgresql
on macOS, sudo apt-get install postgresql
on Ubuntu, or the EnterpriseDB Windows installer.
Run brew update && brew install postgresql
. Start the service: brew services start postgresql
.
Run sudo apt-get update
, then sudo apt-get install postgresql postgresql-contrib
. The service starts automatically.
Download the free installer from EnterpriseDB, run it, and follow the wizard.
Connect with psql and run SELECT version();
to confirm installation and view the licensed version string.
Yes. Package PostgreSQL in Docker, deploy on Kubernetes, or offer managed clusters. The license imposes no cloud-specific restrictions.
Stay current with releases, apply security patches, and leverage extensions like pg_stat_statements
. Even though it’s free, treat maintenance seriously.
See below.
Yes. Enterprises can run unlimited instances, modify the source, and embed PostgreSQL without paying licensing fees.
No. You can host PostgreSQL on any cloud provider or your own hardware at no cost. Managed services charge for hosting, not for PostgreSQL itself.
You may redistribute modified binaries, but you must retain the PostgreSQL copyright notice and license text in the source distribution.