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

Transactions that are in-flight when adding a table to a publication might lose data #2

Open
lawrencejones opened this issue Jan 6, 2020 · 0 comments
Projects

Comments

@lawrencejones
Copy link
Owner

I'm unsure if a transaction that was in-flight and had created new data would be included in a publication if that table was added during the transaction.

That's confusing, this may be clearer:

begin;
  insert into example (msg) values ('hello');
  *
commit;

Imagine we add the example table to our publication at * in the transaction. Does our hello end up being replicated? I suspect it doesn't.

Proposal

Wait for any on-going transactions to complete, after adding a table to the publication, before we create an import job. This will ensure we capture any transactions that might have lost data in our import process.

@lawrencejones lawrencejones added this to To do in v1.0.0 May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v1.0.0
  
To do
Development

No branches or pull requests

1 participant