cockroachdb/replicator

Support data models with natural keys

bobvawter opened this issue · 1 comments

It would be useful to be able to override Replicator's understanding of the primary key for a table when it generates SQL interactions. There may be data sources whose primary key does not line up with the target's primary key, yet the source and target both share a unique, natural key. The necessary changes to the upsert queries should primarily consist of allowing the arbitrator index to be overridden.

PR #973 fully separated replica identity from target PK identity.