Skip to content

Comment about "WAL decoder slots" #51

@hasegeli

Description

@hasegeli

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"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions