-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Since Postgres 18, generated columns can be used by configuring a flag on the publication:
This means it is now possible to use generated columns in PowerSync, with no further modifications required. However, we should:
- Document the flag, perhaps even recommending it for all users when creating the publication.
- Add a check when replicating tables with generated columns, to confirm that Postgres 18 is used and the flag is configured; logging a warning otherwise.
- Re-check behavior of REPLICA IDENTITY FULL when using generated columns. This currently causes consistency issues when the above flag is not set. This could be solved by changing our internal replica identity to use the primary key rather than the entire row, if available.
Metadata
Metadata
Assignees
Labels
No labels