yum Installation
This will install both TimescaleDB and PostgreSQL via yum
(or dnf
on Fedora).
Note: TimescaleDB requires PostgreSQL 9.6.3+, 10.2+, or 11.0+
Prerequisites
- RHEL/CentOS 7 (or Fedora equivalent) or later
Build & Install
WARNING:If you have another PostgreSQL installation not via
yum
, this will likely cause problems. If you wish to maintain your current version of PostgreSQL outside ofyum
, we recommend installing from source. Otherwise please be sure to remove non-yum
installations before using this method.
You'll need to download the correct PGDG from PostgreSQL for your operating system and architecture and install it:
# Download PGDG for PostgreSQL 11, e.g. for RHEL 7:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
## Follow the initial setup instructions found below:
Further setup instructions are found here.
Add TimescaleDB's third party repository and install TimescaleDB, which will download any dependencies it needs from the PostgreSQL repo:
# Add our repo
sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/7/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL
sudo yum update -y
# Now install appropriate package for PG version
sudo yum install -y timescaledb-postgresql-10
Configure your database
There are a variety of settings that can be configured for your new database. At a minimum, you will need to update your postgresql.conf
file to include our library to the parameter shared_preload_libraries
. The easiest way to get started is to run timescaledb-tune
, which is installed by default when using yum
:
sudo timescaledb-tune
This will ensure that our extension is properly added to the parameter shared_preload_libraries
as well as offer suggestions for tuning memory, parallelism, and other settings.
To get started you'll need to restart PostgreSQL and add a postgres
superuser (used in the rest of the docs). Please refer to your distribution for how to restart services and these instructions for adding a postgres
user.
TIP:Our standard binary releases are licensed under the Timescale License. This means that you can use all of our free Community capabilities and seamlessly activate Enterprise capabilities. If you want to use a version that contains only Apache 2.0 licensed code, you should install the package
timescaledb-oss-postgresql-10
. For more information about licensing, please read our blog post about the subject.
Next we will setup the database, either with an empty hypertable, or by migrating data from another source