{"id":16453678,"url":"https://github.com/samr1/pg_stats","last_synced_at":"2025-02-26T20:42:48.356Z","repository":{"id":87876365,"uuid":"146298920","full_name":"SamR1/pg_stats","owner":"SamR1","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-29T06:49:41.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T13:58:05.279Z","etag":null,"topics":[],"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/SamR1.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":"2018-08-27T13:08:20.000Z","updated_at":"2018-08-29T06:49:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e96c8ed5-8baa-4ce4-9b3c-30b98221a015","html_url":"https://github.com/SamR1/pg_stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamR1%2Fpg_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamR1%2Fpg_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamR1%2Fpg_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamR1%2Fpg_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamR1","download_url":"https://codeload.github.com/SamR1/pg_stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240934407,"owners_count":19880991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T10:16:24.341Z","updated_at":"2025-02-26T20:42:48.317Z","avatar_url":"https://github.com/SamR1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_stats\nsimple script to export slowest queries on PostgreSQL database in csv file.\n\n## Prerequisites\n\n`pg_stat_statements` must be loaded (see [PostgreSQL documentation](https://www.postgresql.org/docs/10/static/pgstatstatements.html)).\n\n\n## Usage\n\n```shell\n$ python pg_stats.py -h\nUsage: pg_stats.py [options]\n\nOptions:\n  -h, --help            show this help message and exit\n  -n LIMIT, --number=LIMIT\n                        Number of fetched slowest queries. Default: 20\n  -d DATABASE, --database=DATABASE\n                        Database name. If incorrect or not found, no filter on\n                        database. Default: None\n  -f FILE, --FILE=FILE  Output file with extension. Default: output.csv\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamr1%2Fpg_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamr1%2Fpg_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamr1%2Fpg_stats/lists"}