Skip to content

Installation

The fastest way to get pg_orbit running. The Docker image ships PostgreSQL 17 with pg_orbit pre-compiled.

  1. Pull the image:

    Terminal window
    docker pull git.supported.systems/warehack.ing/pg_orbit:pg17
  2. Start the container:

    Terminal window
    docker run -d --name pg_orbit \
    -e POSTGRES_PASSWORD=orbit \
    -p 5499:5432 \
    git.supported.systems/warehack.ing/pg_orbit:pg17
  3. Connect and enable the extension:

    Terminal window
    psql -h localhost -p 5499 -U postgres -c "CREATE EXTENSION pg_orbit;"

If building from source, the regression tests verify all 57 functions across 11 test suites:

Terminal window
make installcheck PG_CONFIG=/usr/bin/pg_config

This runs the tests listed in the REGRESS variable: TLE parsing, SGP4 propagation, coordinate transforms, pass prediction, GiST indexing, convenience functions, star observation, Keplerian propagation, planet observation, moon observation, and Lambert transfers.

If you have pg_orbit 0.1.0 installed (satellite-only), upgrade to 0.2.0:

ALTER EXTENSION pg_orbit UPDATE TO '0.2.0';

This adds all solar system functions (planets, moons, stars, comets, radio, Lambert transfers) while preserving your existing TLE data and satellite functions.