How to Download & Install PostgreSQL for Windows

โšก Smart Summary

Downloading and installing PostgreSQL for Windows involves choosing the EnterpriseDB installer, running a seventeen-step setup wizard, setting a super-user password, and launching pgAdmin. This walkthrough also covers system requirements, verifying the installation, and removing PostgreSQL cleanly when needed.

  • ๐Ÿ’ป System Requirements: PostgreSQL runs on 64-bit Windows with a modest CPU, at least 2 GB RAM, and administrator rights.
  • โฌ‡๏ธ Bundled Installer: The EnterpriseDB interactive installer bundles the database server and pgAdmin, avoiding manual configuration.
  • ๐Ÿงญ Guided Setup: A seventeen-step wizard sets the install directory, data location, super-user password, and port 5432.
  • ๐Ÿ–ฅ๏ธ Launch pgAdmin: After installation, pgAdmin 4 opens the server dashboard for creating databases and running queries.
  • โœ… Verify Install: Confirm success in pgAdmin or by running SELECT version() in the psql command-line shell.
  • ๐Ÿ—‘๏ธ Clean Removal: Uninstall through Windows Apps, then delete leftover install and data folders for a clean system.

To use Postgre in your machine, you need to install:

  1. Postgre Database Server
  2. A graphical tool to administer and manage the DB. pgAdmin is the most popular tool GUI Tool for Postgre

You could individually Download PostgreSQL for Windows and install these components but coupling the settings between the DB server, and a GUI tool could be a challenge. It’s best to use a bundled installer which takes care of configuration complexities.

System Requirements for Installing PostgreSQL

Before you download PostgreSQL for Windows, make sure your machine meets the basic requirements. PostgreSQL is lightweight, so most modern computers can run it without any problem:

  • Operating system: A supported 64-bit version of Windows, such as Windows 10 or Windows 11, or a current Windows Server release.
  • Processor: A 1 GHz or faster processor is enough for learning and small projects.
  • Memory: At least 2 GB of RAM, though 4 GB or more gives smoother performance with pgAdmin.
  • Disk space: Around 1 GB of free space for the database server, pgAdmin, and sample data.
  • Administrator rights: An account with administrator privileges, because the installer registers a Windows service.
  • Internet connection: Needed only to download the installer from the official PostgreSQL website.

Meeting these requirements ensures the database server and the pgAdmin graphical tool install and start correctly.

How to Download & Install PostgreSQL

Following is a step by step process on How to Install PostgreSQL on Windows Machine:

Step 1) Open your browser.
Go to https://www.postgresql.org/download and select Windows

Download and Install PostgreSQL

Step 2) Check options.
You are given two options 1) Interactive Installer by EnterpriseDB and 2) Graphical Installer by BigSQL.

BigSQL currently installs pgAdmin version 3 which is deprecated. It’s best to choose EnterpriseDB which installs the latest version 4

Download and Install PostgreSQL

Step 3) Select PostgreSQL version.

  1. You will be prompted to desired PostgreSQL version and operating system. Select the latest PostgreSQL version and OS as per your environment
  2. Click the Download Button

Download and Install PostgreSQL

Download will begin

Download and Install PostgreSQL

Step 4) Open exe file.
Once you Download PostgreSQL, open the downloaded exe and Click next on the install welcome screen.

Download and Install PostgreSQL

Step 5) Update location.

  1. Change the Installation directory if required, else leave it to default
  2. Click Next

Download and Install PostgreSQL

Step 6) Select components.

  1. You may choose the components you want to install in your system. You may uncheck Stack Builder
  2. Click Next

Download and Install PostgreSQL

Step 7) Check data location.

  1. You may change the data location
  2. Click Next

Download and Install PostgreSQL

Step 8) Enter password.

  1. Enter super user password. Make a note of it
  2. Click Next

Download and Install PostgreSQL

Step 9) Check port option.

  1. Leave the port number default
  2. Click Next

Download and Install PostgreSQL

Step 10) Check summary.

  1. Check the pre-installation summary:
  2. Click Next

Download and Install PostgreSQL

Step 11) Ready to install.
Click the next button.

Download and Install PostgreSQL

Step 12) Check stack builder prompt.
Once install is complete you will see the Stack Builder prompt

  1. Uncheck that option. We will use Stack Builder in more advance tutorials
  2. Click Finish

Download and Install PostgreSQL

Step 13) Launch PostgreSQL.
To launch PostgreSQL go to Start Menu and search pgAdmin 4

Download and Install PostgreSQL

Step 14) Check pgAdmin.
You will see pgAdmin homepage.

Download and Install PostgreSQL

Step 15) Find PostgreSQL 10.
Click on Servers > PostgreSQL 10 in the left tree

Download and Install PostgreSQL

Step 16) Enter password.

  1. Enter super user password set during installation
  2. Click OK

Download and Install PostgreSQL

Step 17) Check Dashboard.
You will see the Dashboard

Download and Install PostgreSQL

That’s it to PostgreSQL installation.

Also learn more about How to Install PostgreSQL on Ubuntu

How to Verify the PostgreSQL Installation

After the installer finishes, it is a good idea to confirm that PostgreSQL is running correctly before you start building databases. There are two simple ways to check the installation: through the pgAdmin graphical tool and through the psql command-line client.

Using pgAdmin, open the Start Menu, search for pgAdmin 4, and launch it. When prompted, enter the super-user password you set during installation. Expand the Servers node in the left tree and open your PostgreSQL server. If the dashboard loads and shows server activity, the installation is working.

To verify from the command line, follow these steps:

  1. Open the Start Menu and launch the SQL Shell (psql) program.
  2. Press Enter to accept the default server, database, port, and username values.
  3. Type the super-user password when asked.
  4. At the prompt, run the command SELECT version(); and press Enter.

If PostgreSQL is installed correctly, the shell prints the exact version number and build details. You can also confirm that the background service is running by opening the Windows Services panel and checking that the postgresql service shows a status of Running. Once either check succeeds, your PostgreSQL environment is ready for creating databases and running queries.

How to Uninstall PostgreSQL on Windows

If you need to remove PostgreSQL, whether to free up space or to install a fresh version, Windows makes the process straightforward. Follow these steps to uninstall the database server and the pgAdmin tool completely:

  1. Close any running PostgreSQL or pgAdmin windows so that no files are locked during removal.
  2. Open the Start Menu, go to Settings, and select Apps, or open Control Panel and choose Programs and Features.
  3. Find PostgreSQL in the list of installed programs and select it.
  4. Click Uninstall and confirm. The built-in uninstaller removes the server, pgAdmin, and related components.
  5. When the uninstaller finishes, restart your computer to release any remaining locked files.

After the uninstaller completes, some files may remain. To remove PostgreSQL fully, clean up the leftover items:

  • Delete the PostgreSQL installation folder, usually located in C:\Program Files\PostgreSQL.
  • Delete the data directory if you chose a custom location during installation.
  • Remove the PostgreSQL entry from the Windows Services list if it was not cleared automatically.
  • Optionally delete the postgres Windows user account that the installer created.

Removing these leftover folders ensures a clean system, which is important if you plan to reinstall a different PostgreSQL version later or switch to another database.

FAQs

PostgreSQL uses port 5432 by default. The installer keeps this value unless you change it on the port screen. Applications and pgAdmin connect to the server through this port on localhost.

pgAdmin is the most popular graphical tool for PostgreSQL. It lets you create databases, run SQL queries, manage users, and monitor server activity through a visual interface instead of the command line.

Yes. The bundled installer lets you uncheck components on the selection screen. You can install only the database server and later connect using the psql command-line client or another external tool.

AI can recommend the right installer and version for your Windows edition, explain each setup screen, and translate error messages into clear fixes, helping beginners complete the installation without getting stuck.

Yes. AI can suggest settings for memory, connections, and security in the configuration files, and generate the first SQL commands to create databases and users, so you can start working faster.

Summarize this post with: