~/talk

Semi-Joins in PostgreSQL

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
links:none on file
slides:none on file

Explains how PostgreSQL implements EXISTS/IN by either using a native JOIN_SEMI executor (supported for nested-loop, hash and merge joins) or by unique-ifying the RHS into an inner join; planner reduces semi-join to inner when the left side is unique. Describes PG18’s right semi join (hash on smaller side), a temporary disable of parallel plans, and PG19’s unification-planning fixes that remove redundant sorts — a measured plan change drops runtime from 73s to 21s (≈3.4× faster).

AI-written summary · about

  1. 0:00Introduction
  2. 0:46What is a semi join
  3. 2:13Where semi joins come from
  4. 5:23Implementation strategies
  5. 10:27Right semi join in 18
  6. 14:26Improvements in 19
  7. 22:16Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.