{"id":21727130,"url":"https://github.com/msdousti/pg-analyze-training","last_synced_at":"2025-10-25T07:23:22.885Z","repository":{"id":264023467,"uuid":"892079653","full_name":"msdousti/pg-analyze-training","owner":"msdousti","description":"A set of psql scripts, used for 100% live demo on PostgreSQL statistics","archived":false,"fork":false,"pushed_at":"2024-12-31T23:52:00.000Z","size":190,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T00:22:56.878Z","etag":null,"topics":["analyze","postgresql","psql","statistics","vacuum"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msdousti.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":"2024-11-21T13:27:01.000Z","updated_at":"2024-12-31T23:52:04.000Z","dependencies_parsed_at":"2024-12-22T22:20:55.490Z","dependency_job_id":"c0cfca38-acfa-40d7-a4e8-97d568d5d7fe","html_url":"https://github.com/msdousti/pg-analyze-training","commit_stats":null,"previous_names":["msdousti/pg-analyze-training"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdousti%2Fpg-analyze-training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdousti%2Fpg-analyze-training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdousti%2Fpg-analyze-training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdousti%2Fpg-analyze-training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msdousti","download_url":"https://codeload.github.com/msdousti/pg-analyze-training/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235628031,"owners_count":19020535,"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":["analyze","postgresql","psql","statistics","vacuum"],"created_at":"2024-11-26T03:47:39.550Z","updated_at":"2025-10-07T12:31:05.585Z","avatar_url":"https://github.com/msdousti.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog post\n\n**Statistics: How PostgreSQL Counts Without Counting**\n\n* [Part 1: A bird's-eye view into PostgreSQL statistics](https://traderepublic.substack.com/p/statistics-how-postgresql-counts)\n* [Part 2: Into the trenches of PostgreSQL statistics](https://traderepublic.substack.com/p/statistics-how-postgresql-counts-55d)\n\n# How To\n\nJust run `start.sh`. It starts a PostgreSQL Docker container using `docker compose`, and then runs the tutorial on it.\n\n\u003cimg align=\"left\" src=\"./img/exclamation.png\" width=\"50\"\u003e\n\u003ci\u003eIf you don't have Docker, you can adapt \u003ccode\u003estart.sh\u003c/code\u003e to connect to your favorite PostgreSQL server, \nbut this is NOT RECOMMENDED unless you have a playground instance. This is because the scripts drop and recreate \nsome objects such as the \u003ccode\u003epublic\u003c/code\u003e schema!\u003c/i\u003e\n\n----\n\nThe scripts display images using [viu](https://github.com/atanunq/viu). To render the images properly, use a terminal\nwith native support for graphics protocol (e.g., iTerm2 and Kitty), like this:\n\n![Key Takeaways](./img/key_takeaways.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsdousti%2Fpg-analyze-training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsdousti%2Fpg-analyze-training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsdousti%2Fpg-analyze-training/lists"}