Would you like to learn how to perform a Timescaledb installation on Ubuntu Linux? In this tutorial, we are going to show you how to install Timescaledb on a computer running Ubuntu Linux.

What is Timescaledb?

TimescaleDB is an open-source time-series database.

TimescaleDB databases are optimized for fast ingest and complex queries

Timescaledb Tutorial:

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

Tutorial - Timescaledb Installation

On the Linux console, use the following commands to check your Ubuntu codename.

# lsb_release -c -s

In our example, Ubuntu 18.04 codename is bionic.

Take note of this information.

On the Linux console, use the following commands to add the PostgreSQL APT repository

# apt-get install software-properties-common
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
# add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -c -s`-pgdg main"

Now, you need to add the Timescaledb APT repository

# add-apt-repository ppa:timescale/timescaledb-ppa
# apt-get update

Use the following command to install TimescaleDB.

# apt-get install timescaledb-postgresql-11

Use the following command to update your postgresql.conf file to include the Timescaledb library.

# timescaledb-tune

The timescaledb-tune command will start to propose configurations tunning to PostgreSQL.

Press enter Y for all change proposals.

Copy to Clipboard

Use the following command to restart the PostgreSQL service.

# service postgresql restart

Use the following command to check the status of the PostgreSQL service

# service postgresql status

Here is an example of the PostgreSQL service status output.

● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Thu 2019-04-04 23:14:07 UTC; 23s ago
Process: 3689 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3689 (code=exited, status=0/SUCCESS)

Apr 04 23:14:07 ip-172-31-33-180 systemd[1]: Starting PostgreSQL RDBMS...
Apr 04 23:14:07 ip-172-31-33-180 systemd[1]: Started PostgreSQL RDBMS.

Congratulations! You have successfully created a Timescaledb installation on Ubuntu Linux.