PostgreSQL replay tool
  • OCaml 93.2%
  • Makefile 4.1%
  • Shell 2.7%
Find a file
2017-10-06 19:22:34 +02:00
.gitignore Implemented real code generators 2017-10-06 18:33:40 +02:00
backend_c.ml Implemented real code generators 2017-10-06 18:33:40 +02:00
backend_debug.ml Initial commit 2017-10-06 15:49:43 +02:00
backend_ocaml.ml Implemented real code generators 2017-10-06 18:33:40 +02:00
backends.ml Implemented real code generators 2017-10-06 18:33:40 +02:00
filter.sh Initial commit 2017-10-06 15:49:43 +02:00
Makefile Initial commit 2017-10-06 15:49:43 +02:00
mimic.ml Initial commit 2017-10-06 15:49:43 +02:00
parser.ml Implemented real code generators 2017-10-06 18:33:40 +02:00
parser.mli Initial commit 2017-10-06 15:49:43 +02:00
query.ml Initial commit 2017-10-06 15:49:43 +02:00
README.md Added a Limitations section 2017-10-06 19:22:34 +02:00

mimic

This tool allows you to replay queries from a tcpdump capture (it relies on tshark to read it) by generating programs (currently, C/libpq and OCaml/pgocaml) you can later modify.

Dependencies

mimic

sudo apt install tshark
opam install lwt cmdliner tyre

Generated OCaml

opam install pgocaml

Limitations

You'll have to configure tshark to decode packets on exotic ports as pgsql's. To do so, append this to your ~/.wireshark/decode_as_entries file:

decode_as_entry: tcp.port,3000,(none),PGSQL

Connections aren't opened at the same time as they're in the capture. Backends should process event streams instead of query streams!

Parsing probably fails with multiple-line queries.