-
Update your local repository list
sudo apt update
-
Install TimescaleDB
sudo apt install timescaledb-2-postgresql-17 postgresql-client-17
To install a specific $TIMESCALE_DB release, set the version. For example:
sudo apt-get install timescaledb-2-postgresql-14='2.6.0*' timescaledb-2-loader-postgresql-14='2.6.0*'Older versions of $TIMESCALE_DB may not support all the OS versions listed on this page.
-
Tune your $PG instance for TimescaleDB
sudo timescaledb-tune
By default, this script is included with the
timescaledb-toolspackage when you install TimescaleDB. Use the prompts to tune your development or production environment. For more information on manual configuration, see Configuration. If you have an issue, runsudo apt install timescaledb-tools. -
Restart $PG
sudo systemctl restart postgresql
-
Log in to $PG as
postgressudo -u postgres psql
You are in the psql shell.
-
Set the password for
postgres\password postgresWhen you have set the password, type
\qto exit psql.