Skip to content

Replica identity full with no primary key #114

Description

@harshil-goel

Duplicate rows are not replicated to clickhouse. Updates are not propogated.

  ┌────────────────────────────────────────────────┬────────────────┬───────────────────────────────┬────────────────────┐
  │              Operation (Postgres)              │ Postgres state │     ClickHouse FINAL live     │      Correct?      │
  ├────────────────────────────────────────────────┼────────────────┼───────────────────────────────┼────────────────────┤
  │ INSERT (1,'x'), (1,'x') — separate txns        │ 2 rows         │ 2 rows                        │ ✅                 │
  ├────────────────────────────────────────────────┼────────────────┼───────────────────────────────┼────────────────────┤
  │ INSERT (1,'x'), (1,'x') — same txn / bootstrap │ 2 rows         │ 1 row                         │ ❌ collapse        │
  ├────────────────────────────────────────────────┼────────────────┼───────────────────────────────┼────────────────────┤
  │ UPDATE both → (1,'y')                          │ 2 rows         │ 4 rows (1,x ×2 + 1,y ×2)      │ ❌ duplicates      │
  ├────────────────────────────────────────────────┼────────────────┼───────────────────────────────┼────────────────────┤
  │ DELETE both                                    │ 0 rows         │ 4 rows (2 tombstones ignored) │ ❌ nothing removed │
  └────────────────────────────────────────────────┴────────────────┴───────────────────────────────┴────────────────────┘


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions