~/talk

How to scale Postgres for time series data with Citus

Talkat Citus Con: An Event for Postgres 2022 · 2022-04-12..04-13· [databases]
links:none on file
slides:none on file

Shows how to turn Postgres partitioned time-series into a distributed, compressed store using Citus UDFs and pg_cron. Demonstrates create_time_partitions and drop_old_time_partitions to auto-create daily/minute partitions, then uses alter_old_partitions_set_access_method (Citus Columnar) to compress older partitions; demo creates 15 minute-partitions (7 past, 7 future + current), drops partitions older than 5 minutes and compresses ones older than 3 minutes, and uses pg_cron, citus_add_node and rebalance_table_shards to scale out.

AI-written summary · about

  1. 0:00Introduction
  2. 1:31Timeseries data and workload
  3. 3:39Postgres built-in partitioning
  4. 7:25Easy partition management with Citus
  5. 9:36Citus Columnar
  6. 14:44Automated partition management with pg_cron
  7. 18:16Sharding & partitioning
  8. 22:41Demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.