The PostgreSQL open source license is a permissive MIT-style license that lets you freely use, modify, and distribute PostgreSQL with minimal obligations.
The PostgreSQL License is a permissive open source license similar to the MIT or BSD licenses. It grants full rights to use, copy, modify, and distribute PostgreSQL in any form, including commercial products, with only minimal attribution requirements.
Yes. The license allows commercial usage without royalties or copyleft. You can embed PostgreSQL in SaaS platforms, on-prem products, or mobile apps without releasing your own source code.
No. The license imposes no copyleft. You only need to retain the PostgreSQL copyright notice and a disclaimer of warranty in your product documentation or about page.
Add the license text (COPYRIGHT and DISCLAIMER sections) to your NOTICE or LICENSE file. Include a brief attribution such as “PostgreSQL® is licensed under the PostgreSQL License.” in your docs or UI.
While SQL has no built-in SHOW LICENSE
, you can query the PostgreSQL version string, which references the license indirectly.
SELECT version();
The result includes “PostgreSQL” and version details; consult the official site for the exact license text.
Yes. You may fork PostgreSQL, apply patches, compile binaries, and redistribute them. You must keep the original copyright notice and disclaimer intact.
Only two: retain the copyright notice and the liability disclaimer. No patent clauses or contributor license agreements are required.
Some teams strip the copyright notice when redistributing PostgreSQL binaries. This violates the license. Always include the NOTICE file.
Others fear they must open-source proprietary code linked to PostgreSQL. The license is permissive; no such obligation exists.
Store the full license text in your repository, container images, and installation packages. Automate license scanning in CI to confirm the notice remains present after builds.
SELECT string_agg(name || '=' || setting, E'\n') AS build_info
FROM pg_settings
WHERE name IN ('server_version', 'server_version_num', 'integer_datetimes');
Knowing the version helps locate the matching license text on the PostgreSQL website for auditing.
Yes, you can embed PostgreSQL in commercial or proprietary software without paying fees or releasing your own source code. Just keep the copyright notice.
No explicit patent clause exists. However, the PostgreSQL Global Development Group has never enforced patents against users. Most companies treat it as safe for production.
You may fork and rename but cannot use the registered trademark “PostgreSQL” in a way that implies official endorsement. Follow the trademark policy.