~/talk

Demystifying Postgres Foreign Key Constraints on Citus

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
slides:none on file

Citus 11.3 enforces foreign keys by creating local FKs on nodes so each FK is checked by the Postgres instance that holds the relevant shard. Distributed FKs require colocation and same distribution key (one FK becomes N shard-to-shard FKs) and Citus disallows actions that would make shard keys null, so no CASCADE/SET NULL for distributed→reference. Local↔local and reference↔reference FKs work normally; local↔distributed and reference→distributed FKs are currently unsupported.

AI-written summary · about

  1. 0:00Introduction
  2. 2:02What is a Foreign Key?
  3. 7:49Challenges of Foreign Keys on a distributed environment
  4. 9:06How Citus approaches foreign keys
~/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.