electric-sql / electric

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

Restart the Shapes affected by a schema change #1535

Closed KyleAMathews closed 2 weeks ago

KyleAMathews commented 3 weeks ago

I.e. a new column is added to a table

samwillis commented 3 weeks ago

Two thoughts:

  1. It would be nice if additions such as nullable columns, with a default of null, didn't require a full shape restart.
  2. With ability to select subset of columns #1530 it would be nice if the shape wasn't reset if the change didn't effect the selected columns.

Obviously the short path is restart on all/any DDL changes, but with a persisted client side store it would be great if we could avoid that.