Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No primary key set for in postgres to postgres incremental replication #1037

Open
zebesh opened this issue Nov 8, 2022 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@zebesh
Copy link

zebesh commented Nov 8, 2022

My config:
tap:

id: postgres-aff
name: postgres-aff
type: tap-postgres
db_conn:
host: 1.1.1.1
port: 12345
user: user
password: qwerty
dbname: DB
target: postgres-target
schemas:

  • source_schema: myscheme
    target_schema: myscheme_pipe
    tables:
    • table_name: mytable
      replication_method: INCREMENTAL
      replication_key: id

target:
id: postgres-target
name: postgres-target
type: target-postgres
db_conn:
host: host
port: 5432
user: postgres
password: 123456
dbname: DB2

and when i create import, i get this error:

        IMPORTING YAML CONFIGS FINISHED
        -------------------------------------------------------
            Total targets to import        : 1
            Total taps to import           : 1
            Taps imported successfully     : 0
            Taps failed to import          : ["Post import tap checks failed in tap postgres-aff: ['No primary key set for myscheme-mytable stream (INCREMENTAL)']"]
            Runtime                        : 0:00:00.920105

how fix it?

@zebesh zebesh added the help wanted Extra attention is needed label Nov 8, 2022
@Samira-El
Copy link
Contributor

Hi, as the error says, the table is missing a Primary key, you have to add one to the table to do incremental sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants