Skip to content

Installation

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

  1. Pull the image:

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

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

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

If building from source, the regression tests verify all 68 functions across 12 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, Lambert transfers, and DE ephemeris.

If you have a previous version installed, upgrade in place:

-- From v0.1.0 (satellite-only) to v0.2.0 (solar system)
ALTER EXTENSION pg_orrery UPDATE TO '0.2.0';
-- From v0.2.0 to v0.3.0 (DE ephemeris support)
ALTER EXTENSION pg_orrery UPDATE TO '0.3.0';

Each migration adds new functions while preserving existing data and functions.