If you're not familiar with BRIN, check these easy-to-follow articles: https://www.crunchydata.com/blog/postgres-indexing-when-does-brin-win https://medium.com/geekculture/postgres-brin-index-large-data-performance-with-minimal-storage-4db6b...
Start a postgres instance and connect to it with psql
or your favorite tool. And then follow the steps below.
- Create a table and fill in with dummy date: