3 hours ago
PITR only shows up for Railway's official images (postgres-ssl / postgres-patroni). Anyone running a custom Postgres-compatible image (PostGIS, TimescaleDB, extension-heavy builds, or alternative engines) gets volume backups only, plus a "Stage postgres-ssl:18" button that would replace their engine.
The PITR mechanism itself is already image-driven: the image reads WAL_ARCHIVE_*, WAL_RECOVER_FROM_* and POSTGRES_RECOVERY_TARGET_TIME and runs pgBackRest. So an image that implements the same contract should be able to use the same dashboard flow.
I've done that for PostgreSQL pgrust (https://railway.com/deploy/postgresql-pgrust), a marketplace template that runs pgrust, the Rust rewrite of Postgres (18.6 compatible). The image vendors postgres-ssl's own pgBackRest scripts verbatim (MIT, credited) and I've verified it end to end on Railway with a real bucket:
- WAL archiving and the watcher's full backup to a Railway Bucket
- restore to a target time into a new service via
WAL_RECOVER_FROM_*+POSTGRES_RECOVERY_TARGET_TIME: exact rows, promoted on a new timeline, TLS and writes working, source untouched - CI runs the same PITR checks on every build
Source and tests: https://github.com/claretnnamocha/postgres-pgrust
Request: let an image declare that it supports the PITR contract, for example an OCI label such as com.railway.pitr=pgbackrest-v1, or an allowlist you can add images to after review, so Enable PITR, the restore picker and railway postgres pitr work for it. The image owner carries the compatibility burden; Railway's flow stays the same.
Happy to help test, or to change the image to match whatever contract you'd want to support.
0 Threads mention this feature
0 Replies