Installing PostgreSQL on Windows

A reference guide to setting up a PostgreSQL database for OpenFGA to use with KDIS.

Download PostgreSQL Installer

You can find the PostgreSQL installers at the following locations (recommended version 16.2):

Ste-by-Step Installation Guide

Launch the Installer

Launch the installer postgresql-16.2-1-windows-x64.exe.

Make sure you double-click the installer and DO NOT run it as administrator.

Visual guide

 

Installation Summary

  1. Click Next on the Welcome screen.

  2. Optional Step: Enter the installation location and select next; the default location suffices for typical installations.

  3. Select the components you would like; make sure to select PostgreSQL Server; others are optional.

  4. Optional Step: Specify the data directory; the default directory suffices for typical installations.

  5. Provide a password for the superuser account. The username for this account is always "postgres".

    Remember to record this username/password as we will need it when setting up KDI

  6. Specify the port; the default port 5432 suffices for typical installations.

    Remember to record the port as we will need this when setting up KDIS

  7. Change your locale if desired and select next; the default locale suffices for typical installations.

  8. You should now see a summary of the installation choices.

    Verify the details and select Next to initiate the installation.

    With this, you have successfully installed PostgreSQL.