PostgreSQL 12
Last updated
The World's Most Advanced Open Source Relational Database
Install with winget
$ winget install --id PostgreSQL.PostgreSQL.12 --exact --version 12.22-1Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
Silent install command for PostgreSQL 12
PostgreSQL 12 uses EXE. The silent install switches are --mode unattended --unattendedmodeui none.
postgresql-12.22-1-windows-x64.exe --mode unattended --unattendedmodeui none
For Intune admins
Stop chasing app updates. Pckgr patches them for you.
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
About
PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.
Installers · v12.22-1
| Architecture | Type | Scope | Install | Download |
|---|---|---|---|---|
| x64 | EXE | machine | Direct |
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
Security
25 known CVEs via NVD
Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen any file visible to the operating system account running the server, via the choice of logical decoding plugin. This in turn runs arbitrary code as that account....
Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against ALTER and DROP of the type, via creating a dependency on the type. Many DDL operations did check the privilege, but assigning a range subtype and referencing the type...
Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent statistics objects to the current user. This wrongly allows the table owner to run DROP STATISTICS and ALTER STATISTICS via this improper ownership. It wrongly denies t...
Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data lines as psql commands, via error injection. If the "COPY FROM STDIN" or "\copy FROM STDIN" command fails before the server indicates that it awaits input rows, psql pr...
Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user running pg_dump, via a crafted transform list. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affecte...
Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql \restrict meta-command input expansion. The...
Buffer over-read in PostgreSQL ascii() SQL function allows a user to disclose up to 3 bytes after the end of a specific allocation, via a crafted text value. This is the same class of defect that CVE-2026-2006 fixed, though this instance has less impact. Versions before Postgr...
Integer underflow in PostgreSQL ECPG allows a database server administrator to achieve temporary denial of service against the ECPG client via sending a bytea value lacking the mandatory prefix. The client overwrites a huge memory region with bytes outside attacker knowledge or...
See a CVE that affects your fleet? Push the patched version to Intune in one click with Pckgr - automated patching is the only way to keep up.
Related apps
More from PostgreSQL Global Development Group or browse database, db.
Frequently asked questions
How do I install PostgreSQL 12 on Windows?
How do I install PostgreSQL 12 silently for unattended deployment?
What are the silent install switches for PostgreSQL 12?
How do I uninstall PostgreSQL 12 via winget?
Is PostgreSQL 12 free?
Does PostgreSQL 12 work on Windows 10?
How do I keep PostgreSQL 12 up to date?
Recent versions
- 12.22-1latest
- 12.21-1
- 12.20-2
- 12.20-1
- 12.19-2
- 12.19-1