PostgreSQL is released under the PostgreSQL license , a liberal Open Source license, similar to the BSD or MIT licenses.
Why not the GNU General Public License?
People often ask why PostgreSQL is not released under the GNU General Public License.
The simple answer is: we like our license and do not want to change it!
https://www.postgresql.org/about/licence/