~/talk

Logical Replication handling of large transactions

Talkat PGCon 2023 · 2023-05-30..06-02· [databases, distributed-systems]
links:none on file
links:none on file
slides:none on file

Covers how PostgreSQL moves from PG12’s temp-file-per-large-transaction (publisher-side spill) to PG13’s memory cap logical_decoding_work_mem=64MB (default, min 64KB), PG14’s subscription streaming that sends chunked replication messages (publisher streams, subscriber may still spill), and PG16’s streaming=parallel which launches parallel apply workers on the subscriber to apply in-progress transactions immediately. Implemented change reduces apply latency and tests show about 40% faster elapsed time for large-batch inserts; deadlock avoidance, failure restart, and monitoring counters are also added.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Agenda
  3. 3:07Logical decoding | Workflow
  4. 5:12Logical replication | Usage
  5. 6:13Logical replication | Workflow
  6. 7:26Logical replication | Monitoring
  7. 9:27Decoding for large transaction (in PG12)
  8. 11:05and Improvements in PG13
  9. 13:04and Improvements in PG14
  10. 16:28Improvements in PG14 | Monitoring
  11. 19:14Overview and Advantage
  12. 21:46Architecture
  13. 24:15Basic workflow
  14. 25:20Commit protocol
  15. 27:22Failure Handling
  16. 30:35Consideration #1: Deadlock between the leader apply worker and the parallel apply worker
  17. 36:27Future development
  18. 37:35Summary
~/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.