#!/bin/bash set -e # Create the pg_orbit extension on first container startup. # The 020_ prefix orders this after TimescaleDB's own init scripts # (000_, 001_, 010_) when used in timescaledb-ha images. psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "${POSTGRES_DB:-postgres}" <<-'EOSQL' CREATE EXTENSION IF NOT EXISTS pg_orbit; EOSQL