Installation
pg_timetable is compatible with the latest supported PostgreSQL versions: 11, 12, 13, 14 (stable); 15 (dev).
Older PostgreSQL versions (9.5, 9.6, and 10)
If you want to use pg_timetable with older versions (9.5, 9.6 and 10), please execute this SQL command before running pg_timetable:
Official release packages
You may find binary package for your platform on the official Releases page. Right now Windows, Linux and macOS packages are available.
Docker
The official docker image can be found here: https://hub.docker.com/r/cybertecpostgresql/pg_timetable
Note
The latest
tag is up to date with the master
branch thanks to this github action. In production you probably want to use the latest stable tag.
Run pg_timetable in Docker:
Run pg_timetable in Docker with Environment variables:
docker run --rm \
-e PGTT_PGHOST=10.0.0.3 \
-e PGTT_PGPORT=54321 \
cybertecpostgresql/pg_timetable:latest \
-c worker001
Build from sources
- Download and install Go on your system.
-
Clone pg_timetable repo:
-
Run pg_timetable:
-
Alternatively, build a binary and run it:
-
(Optional) Run tests in all sub-folders of the project: