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

Comment about "WAL decoder slots" #51

Open
hasegeli opened this issue Oct 8, 2024 · 0 comments
Open

Comment about "WAL decoder slots" #51

hasegeli opened this issue Oct 8, 2024 · 0 comments

Comments

@hasegeli
Copy link

hasegeli commented Oct 8, 2024

I am confused about the comment in here:

/*
* Do not synchronize WAL decoder slots on a physical standy.
*
* WAL decoder slots are used to produce LCRs. These LCRs are not
* synchronized on a physical standby after initial backup and hence are
* not included in the base backup. Thus WAL decoder slots, if synchronized
* on physical standby, do not reflect the status of LCR directory as they
* do on primary.
*
* There are other slots whose WAL senders use LCRs. These other slots are
* synchronized and used after promotion. Since the WAL decoder slots are
* ahead of these other slots, the WAL decoder when started after promotion
* might miss LCRs required by WAL senders of the other slots. This would
* cause data inconsistency after promotion.
*
* Hence do not synchronize WAL decoder slot. Those will be created after
* promotion
*/

What does it mean by "WAL decoder slots"?

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