Skip to content

MySQL CI -> PostgreSQL collation-dependent varchar primary keys result in 'Duplicate key value violates unique constraint' #99

@easeev

Description

@easeev

Syncing MySQL to PostgreSQL with Kitchen Sync 2.10.

The first sync is successful, on the consequent sync right after the first one (i.e. syncing the same data from the source) get the following error:

starting course_overviews_courseoverview
Error in the 'to' worker: ERROR:  duplicate key value violates unique constraint "course_overviews_courseoverview_pkey"
DETAIL:  Key (id)=(course-v1:xxx+xx2020+2020_T1) already exists.
INSERT INTO "db"."course_overviews_courseoverview" ("created", "modified", "version", "id", "_location", "display_name", "display_number_with_default", "display_org_with_default", "start"...
Error in the 'from' worker: Connection closed
Kitchen Syncing failed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions