A tool that reads packets from a dump file and replays logical statements against a database of your choice. The packets have to be \x19
-separated in the input file.
This can be thought of as logical replication for your PG clients.
It's hard to deploy new databases without benchmarks & the only benchmarks that really matter are your production traffic. This will simulate it, with some exceptions.
Q
: execute a query, simple and worksP
: prepared statement, supportedB
: bind params to the prepared statement, supportedE
: execute the prepared statement, supported
- Copy sub-protocol
- Make sure you have
libpq-dev
(Linux) orbrew install postgresql
(Mac OS). make
This will produce the binary player
in the root directory of this repository.
- Make sure you have a PostgreSQL DB running locally.
- Compile the binary.
- From the root of the repository, run
bash tests/run_tests.sh
.
Any problems, check out the script, it should be obvious what's going on.