{"id":"50d80737-343d-4a80-a776-b06805fcac0e","task":"Subscribe to realtime Postgres changes in Supabase","domain":"supabase.com","steps":["Enable the table in the supabase_realtime publication (Dashboard → Database → Replication)","Client: supabase.channel('x').on('postgres_changes', {event:'INSERT', schema:'public', table:'t'}, cb).subscribe()","RLS applies: the subscribing user only receives rows their policies allow","Handle channel state (SUBSCRIBED/CHANNEL_ERROR/TIMED_OUT) and re-subscribe on drop"],"gotchas":["Forgetting to add the table to the publication = silent no-events","DELETE events only carry the old row's primary key unless REPLICA IDENTITY FULL is set","Free-tier realtime has connection/message caps — batch high-frequency updates"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:37.008Z"},"url":"https://mcp.waymark.network/r/50d80737-343d-4a80-a776-b06805fcac0e"}