{"id":24782577,"url":"https://github.com/levkk/pg-replayer","last_synced_at":"2026-04-19T03:02:41.879Z","repository":{"id":56575292,"uuid":"300686261","full_name":"levkk/pg-replayer","owner":"levkk","description":"A tool to replay Postgres packets against a mirror server to simulate production traffic.","archived":false,"fork":false,"pushed_at":"2020-11-17T21:24:22.000Z","size":726,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-25T10:33:50.564Z","etag":null,"topics":["postgresql"],"latest_commit_sha":null,"homepage":"https://github.com/levkk/pg-replayer","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levkk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-02T17:16:14.000Z","updated_at":"2022-02-14T01:02:13.000Z","dependencies_parsed_at":"2022-08-15T21:10:53.491Z","dependency_job_id":null,"html_url":"https://github.com/levkk/pg-replayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levkk/pg-replayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levkk%2Fpg-replayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levkk%2Fpg-replayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levkk%2Fpg-replayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levkk%2Fpg-replayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levkk","download_url":"https://codeload.github.com/levkk/pg-replayer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levkk%2Fpg-replayer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31992822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql"],"created_at":"2025-01-29T11:18:06.351Z","updated_at":"2026-04-19T03:02:41.854Z","avatar_url":"https://github.com/levkk.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg-replayer\n\nA 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.\n\nThis can be thought of as logical replication for your PG clients.\n\n## Why\nIt's hard to deploy new databases without benchmarks \u0026 the only benchmarks that really matter are your production traffic. This will simulate it, with some exceptions.\n\n## Supported packets\n1. `Q`: execute a query, simple and works\n2. `P`: prepared statement, supported\n3. `B`: bind params to the prepared statement, supported\n4. `E`: execute the prepared statement, supported\n\n## Not supported yet\n\n1. Copy sub-protocol\n\n## Installation\n\n1. Make sure you have `libpq-dev` (Linux) or `brew install postgresql` (Mac OS).\n2. `make`\n\nThis will produce the binary `player` in the root directory of this repository.\n\n## Tests\n\n1. Make sure you have a PostgreSQL DB running locally.\n2. Compile the binary.\n3. From the root of the repository, run `bash tests/run_tests.sh`.\n\nAny problems, check out the script, it should be obvious what's going on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevkk%2Fpg-replayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevkk%2Fpg-replayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevkk%2Fpg-replayer/lists"}