TimescaleDB: Установка

TimescaleDB: Установка

Инструкция по установке и первичной настройке #TimescaleDB.

Репозиторий

  • Скачать и установить ключ репозитория:
1
curl -fsSL 'https://packagecloud.io/timescale/timescaledb/gpgkey' | gpg --dearmor -o '/etc/apt/keyrings/timescaledb.gpg'
  • Создать файл репозитория /etc/apt/sources.list.d/timescaledb.sources со следующим содержимым:
1
. '/etc/os-release' && echo -e "X-Repolib-Name: TimescaleDB\nEnabled: yes\nTypes: deb\nURIs: https://packagecloud.io/timescale/timescaledb/${ID}\nSuites: ${VERSION_CODENAME}\nComponents: main\nArchitectures: $( dpkg --print-architecture )\nSigned-By: /etc/apt/keyrings/timescaledb.gpg\n" | tee '/etc/apt/sources.list.d/timescaledb.sources' > '/dev/null'

Установка

  • Установить пакеты:
1
pgsql='17'; v='2.18.*'; apt update && apt install --yes timescaledb-2-postgresql-${pgsql}=${v} timescaledb-2-loader-postgresql-${pgsql}=${v} timescaledb-tools