{"id":18446669,"url":"https://github.com/cristalhq/pgstats","last_synced_at":"2025-04-08T00:31:56.114Z","repository":{"id":57586805,"uuid":"215883215","full_name":"cristalhq/pgstats","owner":"cristalhq","description":"Postgres statistics for Go","archived":false,"fork":false,"pushed_at":"2019-10-22T20:16:35.000Z","size":36,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T03:24:54.782Z","etag":null,"topics":["go","golang","monitoring","postgres","statistics","tables"],"latest_commit_sha":null,"homepage":"","language":"Go","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/cristalhq.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}},"created_at":"2019-10-17T20:49:28.000Z","updated_at":"2020-07-23T18:29:49.000Z","dependencies_parsed_at":"2022-09-26T19:32:49.047Z","dependency_job_id":null,"html_url":"https://github.com/cristalhq/pgstats","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/cristalhq%2Fpgstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fpgstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fpgstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fpgstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristalhq","download_url":"https://codeload.github.com/cristalhq/pgstats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755401,"owners_count":20990616,"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":["go","golang","monitoring","postgres","statistics","tables"],"created_at":"2024-11-06T07:10:00.429Z","updated_at":"2025-04-08T00:31:55.793Z","avatar_url":"https://github.com/cristalhq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgstats\n\n[![Build Status][build-img]][build-url]\n[![GoDoc][doc-img]][doc-url]\n[![Go Report Card][reportcard-img]][reportcard-url]\n[![Coverage][coverage-img]][coverage-url]\n\nPostgres statistics.\n\n## Features\n\n* Supportes versions (see https://www.postgresql.org/support/versioning/)\n    - 9.4.x\n    - 9.5.x\n    - 9.6.x\n    - 10.x\n    - 11.x\n    - 12.x\n\n## Install\n\nGo version 1.13\n\n```\ngo get github.com/cristalhq/pgstats\n```\n\n## Example\n\n```go\nvar db *sql.DB\n// init db\n\nstats, err := New(db)\nif err != nil {\n    ...\n}\n\nall, err := stats.AllIndexes()\nif err != nil {\n    ...\n}\n\nfor _, index := range all {\n    fmt.Printf(\"index name: %v\\n\", index.Indexrelname)\n}\n```\n\n## Documentation\n\nSee [these docs](https://godoc.org/github.com/cristalhq/pgstats).\n\n## License\n\n[MIT License](LICENSE).\n\n[build-img]: https://github.com/cristalhq/pgstats/workflows/Go/badge.svg\n[build-url]: https://github.com/cristalhq/pgstats/actions\n[doc-img]: https://godoc.org/github.com/cristalhq/pgstats?status.svg\n[doc-url]: https://godoc.org/github.com/cristalhq/pgstats\n[reportcard-img]: https://goreportcard.com/badge/cristalhq/pgstats\n[reportcard-url]: https://goreportcard.com/report/cristalhq/pgstats\n[coverage-img]: https://codecov.io/gh/cristalhq/pgstats/branch/master/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/cristalhq/pgstats","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fpgstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristalhq%2Fpgstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fpgstats/lists"}