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

PostgreSQL Sequence Reset #194

Open
Keda87 opened this issue Jul 4, 2024 · 0 comments
Open

PostgreSQL Sequence Reset #194

Keda87 opened this issue Jul 4, 2024 · 0 comments

Comments

@Keda87
Copy link

Keda87 commented Jul 4, 2024

Hi @osalvador

I've tried to migrate PostgreSQL to PostgreSQL and run successfully.
However, I have an issue when the table uses sequence as the primary key.
after the migration, the new insertion in the sink database reset to 1 as the primary key, instead of using the last sequence.

Is there any solution to deal with this? I find on the documentation but I didn't see any.

here is my configuration.

mode=complete
jobs=5

source.connect.parameter.ApplicationName=ReplicaDB
source.connect=jdbc:postgresql://host-source:9237/db_source
source.user=example
source.password=example

sink.connect=jdbc:postgresql://host-target:5432/db_target
sink.user=target
sink.password=target

for the tables was supplied from the argument following your instruction here #27 (comment)

Thank you in advanced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant