Skip to content

Commit

Permalink
[cdc] always initialize childToParentRelIDMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 17, 2024
1 parent 62edd06 commit d394964
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ func pullCore[Items model.Items](
if err != nil {
return fmt.Errorf("error getting child to parent relid map: %w", err)
}
} else {
childToParentRelIDMap = make(map[uint32]uint32)
}

if err := c.MaybeStartReplication(ctx, slotName, publicationName, req.LastOffset, pgVersion); err != nil {
Expand Down

0 comments on commit d394964

Please sign in to comment.