Installing PostgreSQL and TimescaleDB in Windows
Install PostgreSQL
- Download Postgres
- Run the installer.
Install TimescaleDB
TimescaleDB is an extension for PostgreSQL database. Follow the installation guide below for getting the extension installed on your computer.
Installation Guide and Download
-
Download TimescaleDB installer zip file and extract the
timescaledb
folder to the desktop. -
Add Postgres file path to system environment variables.
-
Search Environment Variables and click
Edit the system environment variables
-
When the system properties windows comes up, make sure it's on the
Advanced
tab and click theEnvironment Variables
button. -
Click on the
Path
variable in the System variables table and click theEdit...
button. -
Double-click the next empty row in the table and paste in the path to the bin folder in the PostgreSQL installation folder.
Example path:
C:\Program Files\PostgreSQL\17\bin
-
Click
OK
. - Try running
pg_config
from a command line to confirm the path is working.
-
-
Stop the PostgreSQL service.
net stop postgresql-x64-17
-
Right click on
setup.exe
within the extracted TimescaleDB folder and click Run as administrator. A command prompt will appear. -
Press
n
to skip tuning the PostgresDB installation -
Open a command prompt inside the installer folder and at the command prompt, run the following command using the appropriate PostgreSQL data path and hit
enter
Example command line to append configuration to the end of the exising configuration:
timescaledb-tune --quiet --yes --dry-run >> "C:\Program Files\PostgreSQL\17\data"
Example command line to update the PostgreSQL configuration:
timescaledb-tune --quiet --yes "--conf-path=C:\Program Files\PostgreSQL\17\data"
- If the installation is not successful due to an "access denied" error, make sure you ran the setup.exe as administrator.
- Start the PostgreSQL service:
net start postgresql-x64-17
Configuring PostgreSQL, TimescaleDB and Ignition as your Historian
Follow the guide here to configure everything for Ignition: Using PostgreSQL and TimescaleDB with Ignition
No Comments