Install and configure TimescaleDB on Postgres
This section shows you how to install the latest version of Postgres and TimescaleDB on a [supported platform][supported-platforms] using the packages supplied by Tiger Data.
If you have previously installed Postgres without a package manager, you may encounter errors following these install instructions. Best practice is to full remove any existing Postgres installations before you begin.
To keep your current Postgres installation, [Install from source][install-from-source].
Install the latest version of Postgres and psql
Download [Postgres][pg-download], then run the installer.
In the
Select Componentsdialog, checkCommand Line Tools, along with any other components you want to install, and clickNext.Complete the installation wizard.
Check that you can run
pg_config. If you cannot runpg_configfrom the command line, in the Windows Search tool, entersystem environment variables. The path should beC:\Program Files\PostgreSQL\<version>\bin.Install TimescaleDB
Unzip the [TimescaleDB installer][supported-platforms] to
<install_dir>, that is, your selected directory.
Best practice is to use the latest version.
In
<install_dir>\timescaledb, right-clicksetup.exe, then chooseRun as Administrator.Complete the installation wizard.
If you see an error like could not load library "C:/Program Files/PostgreSQL/17/lib/timescaledb-2.17.2.dll": The specified module could not be found., use [Dependencies][dependencies] to ensure that your system can find the compatible DLLs for this release of TimescaleDB.
- Tune your Postgres instance for TimescaleDB
Run the timescaledb-tune script included in the timescaledb-tools package with TimescaleDB. For more information, see [configuration][config].
- Log in to Postgres as
postgres
You are in the psql shell.
- Set the password for
postgres
When you have set the password, type \q to exit psql.