Lesson 5, PostgreSQL Aggregation: How to Create and Use Custom Aggregates

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต
In this lesson, get an overview of how PostgreSQL aggregation works and how to create and use custom aggregates.

๐Ÿ›  ๐—ฅ๐—ฒ๐—น๐—ฒ๐˜ƒ๐—ฎ๐—ป๐˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€

๐Ÿ“š ๐—–๐—ต๐—ฎ๐—ฝ๐˜๐—ฒ๐—ฟ๐˜€
โฑ 9:01 โ‡’ Lesson 5 Agenda: How PostgreSQL aggregation works
โฑ 9:25 โ‡’ (01) How PostgreSQL aggregation works (through pictures!)
โฑ 13:58 โ‡’ Transition function: The State Transition function or sfunc
โฑ 16:29 โ‡’ Function: The Final function (18:02)
โฑ 20:11 โ‡’ Parallel workers and the background worker framework
โฑ 26:30 โ‡’ (02) The CREATE AGGREGATE statement
โฑ 31:04 โ‡’ Extensions and object creation hooks
โฑ 32:00 โ‡’ (03) Examples of custom aggregates in SQL & Rust / pgx
โฑ 36:08 โ‡’ pgx: Develop PostgreSQL extensions in Rust
โฑ 40:01 โ‡’ (04) A design pattern for effective custom aggregates
โฑ 41:50 โ‡’ Hyperfunctions API goals
โฑ 43:44 โ‡’ General discussion on API design in SQL
โฑ 42:28 โ‡’ Why two-step aggregation?
โฑ 47:55 โ‡’ Multi-parameter aggregates
โฑ 50:53 โ‡’ `rollup()` tells you that re-aggregation is allowed
โฑ 51:42 โ‡’ `rolling()`
โฑ 53:27 โ‡’ Continuous Aggregates

Why two-step aggregation? (Slide)
โฑ 1. โ‡’ 42:28
โฑ 2. โ‡’ 46:47
โฑ 3. โ‡’ 49:16
โฑ 4. โ‡’ 53:06

๐Ÿ“ ๐—”๐—ฏ๐—ผ๐˜‚๐˜ ๐—™๐—ผ๐˜‚๐—ป๐—ฑ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ผ๐—ณ ๐—ฃ๐—ผ๐˜€๐˜๐—ด๐—ฟ๐—ฒ๐—ฆ๐—ค๐—Ÿ & ๐—ง๐—ถ๐—บ๐—ฒ๐˜€๐—ฐ๐—ฎ๐—น๐—ฒ๐——๐—• ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ
This course is designed for beginners to SQL and database management systems. Throughout the course, weโ€™ll be looking at various topics including schema design, basic schema design, compression, JOINs, and much more.

๐Ÿฏ ๐—”๐—ฏ๐—ผ๐˜‚๐˜ ๐—ง๐—ถ๐—บ๐—ฒ๐˜€๐—ฐ๐—ฎ๐—น๐—ฒ
At Timescale, we are dedicated to serving developers worldwide, enabling them to build exceptional data-driven products that measure everything that matters. Analyzing this data across the time dimension ("time-series data") enables developers to understand what is happening right now, how that is changing, and why that is changing. We are backed by top-tier investors with a track record of success in the industry.

๐Ÿ’ป ๐—™๐—ถ๐—ป๐—ฑ ๐—จ๐˜€ ๐—ข๐—ป๐—น๐—ถ๐—ป๐—ฒ!
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

I have been watching since lesson 0 and David and Miranda have done a great job. The only thing that I find hard to listen to is David's "Ah" "Um".

jaylonnichols