PGConf NYC 2021 - How PostgreSQL aggregates work and how to create and use custom... by David Kohn

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=7oNrGUvW8So



Category:
Guide
Duration: 33:04
21 views
1


How PostgreSQL aggregates work (through pictures) and how to create and use custom aggregates effectively by David Kohn

In order to truly get the most out of a system like PostgreSQL, it’s helpful to understand how some of the work happens “under-the-hood”. Aggregates (functions applied over groups of rows like sum() or avg()) are one of the most commonly used features of PostgreSQL, but many people don’t understand how they work internally and therefore don’t always use them efficiently. Additionally, many people don’t even know that custom aggregates exist and how powerful they can be, (especially when combined with a good understanding of how all aggregates work!). This talk will provide a brief overview of how aggregates work in PostgreSQL through pictures! The overview will cover the following items:

Transition, final, and combine functions
Parallel aggregation
Aggregate de-duplication and optimization
After the overview of aggregates in general, we’ll cover custom aggregates, including the command, how to create them (in a couple languages) and how they fit into the framework we discussed before. Finally, we will understand why and how you can design efficient custom aggregates for use in your applications, with examples of how to design custom aggregates to fill specific needs and work synergistically with the optimizations PostgreSQL provides. We’ll also provide an example of how we’ve used custom aggregates to create TimescaleDB hyperfunctions and the two-step design pattern we’ve used.




Other Videos By Confreaks


2022-10-12PGConf NYC 2021 - Identifying Slow Queries and Fixing Them! by Stephen Frost
2022-10-12PGConf NYC 2021 - PostgreSQL Query Performance Insights by Hamid Quddus Akhtar
2022-10-12PGConf NYC 2021 - Advanced Data Types in PostgreSQL by Andreas Scherbaum
2022-10-12PGConf NYC 2021 - NORM: No ORM Framework by Henrietta Dombrovskaya
2022-10-12PGConf NYC 2021 - Speaking and Community Involvement for the Introvert by Pat Wright
2022-10-12PGConf NYC 2021 - Get Your Insecure PostgreSQL Passwords to SCRAM! by Jonathan S. Katz
2022-10-12PGConf NYC 2021 - NORM: No ORM Framework by Henrietta Dombrovskaya
2022-10-12PGConf NYC 2021 - Navigate Postgres Cloud Paths: Kubernetes, IaaS, or DbaaS by Marc Linster
2022-10-12PGConf NYC 2021 - How we made PG Fitter, Happier, More Productive by Andrew Atkinson
2022-10-12PGConf NYC 2021 - War Stories: Fighting the PostreSQL Support Trenches by Hans Jurgen
2022-10-12PGConf NYC 2021 - How PostgreSQL aggregates work and how to create and use custom... by David Kohn
2022-10-12PGConf NYC 2021 - A Deep Dive into PostgreSQL Indexing by Ibrar Ahmed
2022-10-12PGConf NYC 2021 - PostgreSQL sharding, state of the art by Julien Tachoires
2022-10-12PGConf NYC 2021 - Teaching elephants to fish by Ryan Booz
2022-10-12PGConf NYC 2021 - Migration validation made easy with Ora2Pg by Gilles Darold
2022-10-12PGConf NYC 2021 - Chasing unicorns : 0 dataloss and 99.999% availability by Laetitia Avrot
2022-10-12PGConf NYC 2021 - Evolution Of PostgreSQL Replication and High Availability... by Stacy Scoggins
2022-10-12PGConf NYC 2021 - Pglog: a flexible log analyser by Laetitia Avrot
2022-10-12PGConf NYC 2021 - When it all GOes right by Pavlo Golub
2022-10-12PGConf NYC 2021 - Data Security using Roles, Privileges and Row Level Security by Abbas Butt
2022-10-12PGConf NYC 2021 - Postgres and Json - How to get the best of them? by Charly Batista



Tags:
Postgres
PGConf
PostgreSQL