Documentation for PostgreSQL · Open source, Apache-2.0
Heavy PostgreSQL reports, from minutes to seconds.
Your reports and BI tools connect to DBTrail instead of PostgreSQL. Heavy queries run on a copy of your tables kept about a second behind, and quick reads still go to PostgreSQL. Your application keeps writing to PostgreSQL, as it does today.
Already running DBTrail? Connect a clientWhich side answersTroubleshooting
Nothing installed in PostgreSQLIts built-in logical replication. A few settings, checked at start.
One installOne command with Docker. No pipeline to build.
A copy built for reportsYour tables as columnar files, about a second behind.
Each query goes to the right sideHeavy reports run on the copy. Quick reads go to PostgreSQL.
Your tools, as they arepsql, your drivers and your BI tools. Only the port changes.
Try it
curl -fsSL https://raw.githubusercontent.com/dbtrail/dbtrail/main/install-postgres.sh | shTwo more steps, all copy and paste, and your first report runs on the copy: Quickstart.
What you get
- Heavy reports in seconds. Totals, rankings and joins over big tables run on the copy.
- Your tools, as they are.
psql, your drivers and your BI tools. Only the port changes, to 5433. - Nothing installed in PostgreSQL. DBTrail reads the changes through PostgreSQL's own logical replication, like a replica. It never writes to your server.
- Every change kept. See a row as it was, and get the SQL that undoes a bad change: Recovery.
How it works
- PostgreSQL sends DBTrail every change, through its built-in logical replication (Prepare your PostgreSQL).
- DBTrail keeps them in its history store, a small database of its own that the install runs for you, and keeps a columnar copy of every table up to date from them (Run and maintain).
- Your reports connect to DBTrail on port 5433. Heavy ones run on the copy. Quick ones go to your PostgreSQL, read-only (Which side answers).
- Answers include rows written a moment ago (How current an answer is).
Works with PostgreSQL 15 to 18, Amazon RDS and Aurora (Managed PostgreSQL). Before production: Limitations.