postgresql-replicant-0.2.0.1: PostgreSQL logical streaming replication library
Copyright(c) James King 2020 2021
LicenseBSD3
Maintainerjames@agentultra.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Replicant.State

Description

This module has the types and functions for maintaining the client stream state.

After initiating a replication stream the wal_sender process on the server may require clients to periodically send progress updates. The wal_sender process uses those updates to maintain its internal view of the clients' state.

This enables the server to report on things like replication lag and enables the client to disconnect and restart the stream where it left off.

Documentation