electric-sql / electric

Sync little subsets of your Postgres data into local apps and services.
https://electric-sql.com
Apache License 2.0
6.48k stars 156 forks source link

fix: Relation handling should match transaction handling #1871

Closed msfstef closed 1 month ago

msfstef commented 1 month ago

Fixes https://github.com/electric-sql/electric/issues/1870

With recent changes to the codebase, relation changes are handled by individual shape consumers the same way transactions are, and they trigger cleanups or other processes.

I've made the relation handling match the transaction handling, including the dropping of relation messages if no subscribers are present.