https://github.com/msdousti/pg-analyze-training
A set of psql scripts, used for 100% live demo on PostgreSQL statistics
https://github.com/msdousti/pg-analyze-training
analyze postgresql psql statistics vacuum
Last synced: 8 months ago
JSON representation
A set of psql scripts, used for 100% live demo on PostgreSQL statistics
- Host: GitHub
- URL: https://github.com/msdousti/pg-analyze-training
- Owner: msdousti
- License: apache-2.0
- Created: 2024-11-21T13:27:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T23:52:00.000Z (over 1 year ago)
- Last Synced: 2025-01-01T00:22:56.878Z (over 1 year ago)
- Topics: analyze, postgresql, psql, statistics, vacuum
- Language: PLpgSQL
- Homepage:
- Size: 186 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blog post
**Statistics: How PostgreSQL Counts Without Counting**
* [Part 1: A bird's-eye view into PostgreSQL statistics](https://traderepublic.substack.com/p/statistics-how-postgresql-counts)
* [Part 2: Into the trenches of PostgreSQL statistics](https://traderepublic.substack.com/p/statistics-how-postgresql-counts-55d)
# How To
Just run `start.sh`. It starts a PostgreSQL Docker container using `docker compose`, and then runs the tutorial on it.
If you don't have Docker, you can adapt start.sh to connect to your favorite PostgreSQL server,
but this is NOT RECOMMENDED unless you have a playground instance. This is because the scripts drop and recreate
some objects such as the public schema!
----
The scripts display images using [viu](https://github.com/atanunq/viu). To render the images properly, use a terminal
with native support for graphics protocol (e.g., iTerm2 and Kitty), like this:
