~/talk

Building a Foreign Data Wrapper

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

Postgres FDW API exists since 9.3 (2011) and extensions are written in C; pg_clickhouse evolves from postgres_fdw and clickhouse_fdw and raises supported expression node types from 21 to 35 (postgres_fdw ~29). Planning uses callbacks like get_foreign_relation_size, get_foreign_paths, get_foreign_join_paths, get_foreign_upper_paths, and get_foreign_plan to tag remote vs local clauses, set costs, and build remote SQL. Implementation adds is_foreign_expression and deparse_expression, sets a 50 MB fetch size, and specifically maps SQL value functions (current_date/time), unsigned ints and RE2 regex for pushdown.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:31What is a foreign data wrapper
  3. 7:20Pushdown optimization basics
  4. 15:29Foreign join paths callback
  5. 20:49Foreign upper paths callback
  6. 27:08Planning and pushdown negotiation
  7. 35:35Starting simple and iterating
  8. 37:02Adding SQL value function support
  9. 42:16Four categories of pushdown mapping
  10. 45:06Q&A on pushdown trade-offs
~/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.