Install PostgreSQL offline — step-by-step
- On an online machine, download the 64-bit installer above.
- Copy the postgresql-18.3-3-windows-x64.exe to a USB drive or secure share.
- Move the file to the offline Windows PC.
- Run the installer as Administrator, select your data directory, and set a strong postgres password.
- Keep the default port 5432 unless it’s already used.
- Skip Stack Builder and any components that require internet. You can add extras later.
- Finish setup. Open Command Prompt and run
psql --version. If not found, fix PATH issues.
Optional: verify integrity and signature
While still online, verify the installer before moving it offline:
- Right‑click the .exe → Properties → Digital Signatures tab. Verify the signer is trusted.
- Optionally compute a checksum (e.g., SHA‑256) and store it with the file.
After transfer, re‑check the signature on the offline PC to ensure the file wasn’t altered.
What works offline, what doesn’t
Works offline
Core PostgreSQL server, command‑line tools, Windows service registration.
Might need internet
Optional extensions via Stack Builder and some client tools. Install later when online.
ODBC drivers
psqlODBC x64/x86 can be installed separately. See the ODBC guide.
Related guides
Disclaimer: This is an unofficial resource. PostgreSQL is a registered trademark of the PostgreSQL Community Association of Canada. Links may include affiliate tracking.