Would you like to learn how to install TimescaleDB on Windows? This tutorial will show you how to install the TimescaleDB service on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7
• PostgreSQL 12
• TimescaleDB

Hardware List:

The following section presents the list of equipment used to create this tutorial.

Every piece of hardware listed above can be found at Amazon website.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial TimescaleDB – Installation on Windows

Access the POSTGRESQL website and download the POSTGRESQL installation package.

Timescaledb Download Windows

In our example, PostgreSQL version 12 will be installed on a computer running Windows 2012 R2.

Double-click the package to start the PostgreSQL software installation.

PostgreSQL Windows

Select the installation directory and click on the Next button.

Timescaledb Install Windows

Select the desired PostgreSQL components.

PostgreSQL Windows Components

Select the data directory and click on the Next button.

Timescaledb Windows Install

Enter the password for the PostgreSQL service administrator.

PostgreSQL Windows password

Set the desired TCP port for the PostgreSQL service.

In our example, we kept the default TCP port.

PostgreSQL Port Windows

Click on the Next button.

PostgreSQL Installation Locale

Verify the summary and start the PostgreSQL installation.

Timescaledb Installation on Windows

Uncheck the box and click on the Finish button.

Windows PostgreSQL installation

Congratulations, you have installed the PostgreSQL service on Windows.

Tutorial TimescaleDB – Edit the PATH environment variable

As Administrator, start a new POWERSHELL command-line prompt.

Powershell on Start menu

Create a backup of the PATH variable content.

Copy to Clipboard

Create a temporary Powershell variable named INCLUDE.

Set its content to the PostgreSQL commands directory.

Copy to Clipboard

In our example, we want to include the following directory in the PATH environment variable.

Copy to Clipboard

List the content of the PATH variable.

Copy to Clipboard

As an example, here is the content of our PATH variable.

Copy to Clipboard

Modify the PATH environment variable to include the new directory.

Copy to Clipboard

You have included the PostgreSQL BIN directory in the PATH environment variable.

TimescaleDB installation on Windows

As Administrator, start a new DOS command-line prompt.

Windows DOS Prompt

Stop the PostgreSQL service.

Copy to Clipboard

Download and extract the latest version of the TIMESCALEDB Zip file.

TimescaleDB Windows

Double-click the file named SETUP.

Press Y and enter the full path to the PostgreSQL configuration file.

In our example, we used the following path to the PostgreSQL configuration file.

Copy to Clipboard

Keep pressing Y to all the questions.

Timescaledb Install on Windows

Start the PostgreSQL service.

Copy to Clipboard

On the Windows server, click on the start menu and select the SQL SHELL option.

Enter the POSTGRESQL administrator password.

PostgreSQL command-line Windows

Verify the TimescaleDB installation.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Enable the TimescaleDB installation.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Verify the list of installed extensions.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You have finished the TimescaleDB installation on Windows.