Download PostgreSQL from https://www.postgresql.org/download/windows/
Run the installer:
postgres superuser account (remember this password!)Complete the installation and launch Stack Builder if prompted (optional)
Verify installation:
C:\Program Files\PostgreSQL\17\bin)psql --versionInstall Chocolatey (if not already installed):
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))Install PostgreSQL:
choco install postgresql17
Start PostgreSQL service:
# The service should start automatically, but you can verify with:
Get-Service postgresql*
Install pgvector extension:
# pgvector needs to be compiled from source on Windows
# Download from: https://github.com/pgvector/pgvector/releases
# Or use a pre-built version if available
# Follow installation instructions for Windows
Note: On Windows, pgvector installation may require building from source. Check the pgvector GitHub repository for Windows installation instructions or pre-built binaries.
Docker provides an easy way to run PostgreSQL with pgvector pre-installed. See the Docker Installation Guide for detailed instructions.
Note: Docker Desktop must be running before you can use Docker commands. Make sure Docker Desktop is started from the Start menu or system tray.
After installation, proceed to: