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

Add more options for xmins and nextxids #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 25, 2018

  1. Add more options for xmins and nextxids

    This adds two more options for additional metadata into the slot:
    
    - `include-xmins` This data includes the `catalog_xmin` and `xmin` fields
    from the replication slot. The reasons for wanting this generally occurs when
    using logical replication with a secondary. Since replication slots don't
    get replicated to secondaries, in the event of the failover you need
    some mechanism for seeing what records you may have missed. The
    xmin/catalog_xmin is useful as you can use it for a lower bound and any
    records with a higher xmin could have been missed
    - `include-next-xids` This includes sending both the `epoch` and
    `nextxid` 32-bit ints. The epoch is a number that increments when xid
    rollover happens. This allows you to reconstruct the same txid you get
    from the `txid_current` function which accounts for rollover. This can
    be really useful to see at a point's time how far behind the slot you
    currently are.
    Addison Higham committed Apr 25, 2018
    Configuration menu
    Copy the full SHA
    d4be228 View commit details
    Browse the repository at this point in the history