Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/fix-move-in-lsn-filtering.md

This file was deleted.

11 changes: 11 additions & 0 deletions packages/pglite-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @electric-sql/pglite-sync

## 0.6.4

### Patch Changes

- af37b02: Fix move-in messages from tagged_subqueries not being synced

This fixes two issues with move-in messages from Electric's `tagged_subqueries` feature:

1. **LSN filtering bypass**: Move-in messages don't include an LSN header because they originate from direct database queries rather than the PostgreSQL replication stream. Previously, these messages were being filtered out as "already seen" because the missing LSN defaulted to 0. This fix checks for the `is_move_in` header and bypasses LSN filtering for these messages.
2. **Duplicate key handling**: Move-in data can overlap with data from the initial sync (e.g., when a row "moves in" to match a subquery that it already matched during initial sync). This fix uses `ON CONFLICT DO UPDATE` for move-in inserts to handle these duplicates gracefully, updating the row with the latest data instead of erroring.

## 0.6.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pglite-sync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@electric-sql/pglite-sync",
"version": "0.6.3",
"version": "0.6.4",
"description": "Postgres Sync for PGlite",
"type": "module",
"private": false,
Expand Down
Loading