Guide index

PostgreSQL for Windows — download, install & configure

The complete guide for running PostgreSQL on Windows 10 and 11. Official installer, service setup, PATH fix, pgAdmin 4, backups and troubleshooting.

This is an unofficial community guide for PostgreSQL on Windows. The official PostgreSQL website is postgresql.org.

PostgreSQL for Windows — the world's most advanced open source database

PostgreSQL (also called Postgres) is a powerful, free and open-source relational database management system. It has been in active development for over 35 years and is used by companies of all sizes for web applications, analytics, data warehousing and more. On Windows it runs as a background service and includes pgAdmin 4, a full-featured GUI administration tool.

The official Windows installer from EDB (EnterpriseDB) bundles PostgreSQL Server, pgAdmin 4, the Stack Builder extension manager and command-line tools including psql, pg_dump and pg_restore.

PostgreSQL on Windows — complete guide index

GuideWhat it covers
Download & installInstaller, setup wizard, post-install verification
Offline installerInstall without internet, USB transfer
Windows serviceAuto-start, service account, recovery
Fix PATH / psql‘psql is not recognized’ fix
pgAdmin 4GUI setup, first connection, tips
postgresql.confPort, memory, logging configuration
Port 5432Change port, fix conflicts
Remote connectionspg_hba.conf + firewall
Reset passwordRecover lost postgres password
psql commandsEssential commands cheat sheet
Backup & restorepg_dump, pg_restore on Windows
Service not startingFix startup failures
Python & psycopg2Connect Python to PostgreSQL
ODBC driverpsqlODBC x64 and x86 setup
Migrate & upgradepg_upgrade, dump/restore
Windows ServerServer 2019 / 2022 setup
UninstallComplete removal guide
FAQCommon questions answered

Minimum requirements for PostgreSQL on Windows

ComponentMinimumRecommended
OSWindows 10 64-bitWindows 11 or Server 2022
RAM1 GB4 GB or more
Disk512 MB (binaries)10+ GB for data
Architecturex64 onlyx64

Common questions

Is PostgreSQL free on Windows?
Yes. PostgreSQL is released under the PostgreSQL License, which is a permissive open-source license similar to BSD/MIT. It is free for personal and commercial use with no restrictions.
What is the latest version of PostgreSQL?
PostgreSQL 18.3 is the latest stable release (May 2026). For production use on Windows, always use the latest minor release of a supported major version. See the full download guide.
Does PostgreSQL run as a Windows service?
Yes. The EDB installer registers PostgreSQL as a Windows service that starts automatically on boot. You can manage it via Services (services.msc) or the pg_ctl command. See the Windows service guide.

Ready to install?

Download the official PostgreSQL installer for Windows 10 and 11.

Download guide