8000 Refactor our internal representation for Logical Messages. by dimitri · Pull Request #198 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor our internal representation for Logical Messages. #198

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

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Feb 17, 2023

The KEEPALIVE and SWITCH WAL messages could be part of a transaction (typically one that spans multiple WAL files), but also can be found independently, between transactions.

Our previous internal representation insisted that every message be put in the context of a transaction, but that doesn't fit well with the reality.

This refactoring is also necessary for streaming, where we don't want to wait until the end of the next transaction before replaying the KEEPALIVE messages. That kind of defeat the purpose of a KEEPALIVE message.

The KEEPALIVE and SWITCH WAL messages could be part of a
transaction (typically one that spans multiple WAL files), but also can be
found independently, between transactions.

Our previous internal representation insisted that every message be put in
the context of a transaction, but that doesn't fit well with the reality.

This refactoring is also necessary for streaming, where we don't want to
wait until the end of the next transaction before replaying the KEEPALIVE
messages. That kind of defeat the purpose of a KEEPALIVE message.
@dimitri dimitri merged commit b97b977 into main Feb 17, 2023
@dimitri dimitri deleted the fix/switch-and-keepalive-messages branch February 17, 2023 17:36
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

Successfully merging this pull request may close these issues.

1 participant
0