You can host TimescaleDB yourself on your Microsoft Windows system.
These instructions use a zip
installer on these versions:
- Microsoft Windows 10
- Microsoft Windows 11
- Microsoft Windows Server 2019
The minimum supported PostgreSQL versions are:
- PostgreSQL 12.8
- PostgreSQL 13.5
- PostgreSQL 14.0
- PostgreSQL 15.0
Warning
If you have already installed PostgreSQL using another method, you could encounter errors following these instructions. It is safest to remove any existing PostgreSQL installations before you begin. If you want to keep your current PostgreSQL installation, do not install TimescaleDB using this method. Install from source instead.
To install TimescaleDB 2.11.2 or later, make sure you have installed OpenSSL 3.x.
For older versions of TimescaleDB, OpenSSL 1.1.1 is required.
- Download and install the Visual C++ Redistributable for Visual Studio from www.microsoft.com.
- Download and install PostgreSQL from www.postgresql.org.
You might need to add the
pg_config
file location to your path. In the Windows Search tool, search forsystem environment variables
. The path should beC:\Program Files\PostgreSQL\<version>\bin
. - Download the TimescaleDB installation
.zip
file from Windows releases. - Locate the downloaded file on your local file system, and extract the files.
- In the extracted TimescaleDB directory, right-click the
setup.exe
file and selectRun as Administrator
to start the installer.
When you have completed the installation, you need to configure your database so
that you can use it. The easiest way to do this is to run the timescaledb-tune
script, which is included with the timescaledb-tools
package. For more
information, see the configuration section.
When you have PostgreSQL and TimescaleDB installed, you can connect to it from
your local system using the psql
command-line utility.
The psql
tool is installed by default on Windows systems when you install
PostgreSQL, and this is the most effective way to install the tool. These
instructions use the interactive installer provided by PostgreSQL and
EnterpriseDB.
- Download and run the PostgreSQL installer from www.enterprisedb.com.
- In the
Select Components
dialog, checkCommand Line Tools
, along with any other components you want to install, and clickNext
. - Complete the installation wizard to install the package.
On your local system, at the command prompt, connect to the PostgreSQL instance as the
postgres
superuser:psql -U postgres -h localhostIf your connection is successful, you'll see a message like this, followed by the
psql
prompt:psql (13.3, server 12.8 (Ubuntu 12.8-1.pgdg21.04+1))SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)Type "help" for help.tsdb=>At the
psql
prompt, create an empty database. Our database is calledexample
:CREATE database example;Connect to the database you created:
\c exampleAdd the TimescaleDB extension:
CREATE EXTENSION IF NOT EXISTS timescaledb;You can now connect to your database using this command:
psql -U postgres -h localhost -d example
You can check that the TimescaleDB extension is installed by using the \dx
command at the psql
prompt. It looks like this:
tsdb=> \dxList of installed extensions-[ RECORD 1 ]------------------------------------------------------------------Name | pg_stat_statementsVersion | 1.7Schema | publicDescription | track execution statistics of all SQL statements executed-[ RECORD 2 ]------------------------------------------------------------------Name | plpgsqlVersion | 1.0Schema | pg_catalogDescription | PL/pgSQL procedural language-[ RECORD 3 ]------------------------------------------------------------------Name | timescaledbVersion | 2.4.1Schema | publicDescription | Enables scalable inserts and complex queries for time-series data-[ RECORD 4 ]------------------------------------------------------------------Name | timescaledb_toolkitVersion | 1.3.1Schema | publicDescription | timescaledb_toolkittsdb=>
Here are the latest TimescaleDB releases for PostgreSQL 12, 13, 14, and 15. To see information on releases, check out the GitHub releases page. Also see the release notes.
Now that you have your first Timescale database up and running, you can check out the Use Timescale section, and find out what you can do with it.
If you want to work through some tutorials to help you get up and running with Timescale and time-series data, check out the tutorials section.
Keywords
Found an issue on this page?
Report an issue!