{"id":16392009,"url":"https://github.com/mikeshultz/pgstorm","last_synced_at":"2026-05-12T12:39:14.734Z","repository":{"id":147876733,"uuid":"112029758","full_name":"mikeshultz/pgstorm","owner":"mikeshultz","description":"A PostgreSQL load tester with basic tests written in python.","archived":false,"fork":false,"pushed_at":"2017-11-25T20:07:57.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T22:27:48.898Z","etag":null,"topics":["load-testing","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikeshultz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-25T19:40:36.000Z","updated_at":"2017-11-25T20:05:52.000Z","dependencies_parsed_at":"2023-05-27T18:45:13.610Z","dependency_job_id":null,"html_url":"https://github.com/mikeshultz/pgstorm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshultz/pgstorm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fpgstorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fpgstorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fpgstorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fpgstorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshultz","download_url":"https://codeload.github.com/mikeshultz/pgstorm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fpgstorm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32940101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["load-testing","postgresql"],"created_at":"2024-10-11T04:48:10.272Z","updated_at":"2026-05-12T12:39:14.704Z","avatar_url":"https://github.com/mikeshultz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgstorm\n\nPostgreSQL load testing tool with real world tests.\n\n## Install\n\n    git clone https://github.com/mikeshultz/pgstorm.git \u0026\u0026 cd pgstorm \u0026\u0026 python setup.py install\n\n## Usage\n\n    usage: pgstorm [-h] [-t N] [-d DELAY] [-l LEVEL] [-y TYPE] [-v VALUE]\n                   DSN [FILE]\n\n    PostgreSQL load testing.\n\n    positional arguments:\n      DSN                   pg connection string (default:\n                            postgresql://localhost:5432/postgres)\n      FILE                  sql file to run(or stdin)\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -t N, --threads N     amount of threads to start\n      -d DELAY, --delay DELAY\n                            thread health check delay in seconds(default: 0.05)\n      -l LEVEL, --log-level LEVEL\n                            log level(default: WARNING)\n      -y TYPE, --type TYPE  test type M - Must have results, N - Must return\n                            --value rows, E - Equal too --value\n      -v VALUE, --value VALUE\n                            value comparison for test type\n\n## Examples \n\n### Run SQL File\n\nRun an SQL file, with perhaps dozens of taxing queries.\n\n    pgstorm -t 5 postgresql://localhost:5432/mydb mytest.sql\n\n### Require Any Results\n\nMake sure that any results are returned at all(at least one row):\n\n    echo \"SELECT TRUE FROM \\\"user\\\" WHERE usename = 'mike';\" | pgstorm -y M postgresql://localhost:5432/mydb \n\n### Require Row Count\n\nIf you want to make sure a query always returns 3 rows:\n\n    pgstorm -y N -v 3 postgresql://localhost:5432/mydb return_three_rows.sql\n\n### Require Value\n\nYou may want to check against an exact value to make sure you're getting \nconsistent results.\n\nFor instance, you want to make sure you always get `record_id` = 153:\n\n    echo \"SELECT record_id FROM records WHERE name = 'Jones';\" | pgstorm -y E -v 153 postgresql://localhost:5432/mydb get_user.sql ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fpgstorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshultz%2Fpgstorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fpgstorm/lists"}