Install on Windows
Install PostgreSQL, then add the TimescaleDB extension to it.
1. Install PostgreSQL
Use either method.
- Download PostgreSQL for Windows x86-64 from the PostgreSQL download page (the Community download page on enterprisedb.com).
- Run the installer and keep the defaults. Set a password for the
postgresuser and remember it.
The Documentation PDF used PostgreSQL 16. The original page of this guide was written for version 11, so the example paths below say <version>.
2. Install TimescaleDB
TimescaleDB is an extension for PostgreSQL. Windows builds are zip files on the TimescaleDB releases page. The Documentation PDF used this release for PostgreSQL 16:
https://github.com/timescale/timescaledb/releases/download/2.13.1/timescaledb-postgresql-16-windows-amd64.zip
Pick the zip that matches your PostgreSQL major version (14, 15, 16 and so on). A zip built for a different PostgreSQL version will not load.
-
Download the TimescaleDB zip and extract the
timescaledbfolder to the desktop. -
Add PostgreSQL's
binfolder to the systemPathvariable, so the setup program can findpg_config.- Search for Environment Variables and click Edit the system environment variables.
- On the Advanced tab, click Environment Variables.
- Select
Pathin the System variables table and click Edit…. -
Double-click the next empty row and paste the path to PostgreSQL's
binfolder, for example: -
Click OK on each window.
-
Stop the PostgreSQL service.
-
Right-click
setup.exein the extractedtimescaledbfolder and choose Run as administrator. A command prompt opens. -
Press
yto tune the PostgreSQL installation. -
When asked, paste the path to PostgreSQL's data folder and press Enter:
-
Keep typing
yand Enter until it stops asking.
Access denied
If the setup fails with access denied, you did not run setup.exe as administrator.
- Start the PostgreSQL service again, or restart the PC as the Documentation PDF does.
3. Create the database and load the extension
Use psql or pgAdmin. pgAdmin comes with the PostgreSQL installer and winget installs it too.
\dx must list timescaledb with its version. Next: create the Ignition user and allow the Gateway to connect.