An open API service indexing awesome lists of open source software.

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

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:

![Key Takeaways](./img/key_takeaways.png)