Copyright | (c) James King 2020 2021 |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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
data WalProgress Source #
Constructors
WalProgress | |
Fields |
Instances
Eq WalProgress Source # | |
Defined in Database.PostgreSQL.Replicant.State | |
Show WalProgress Source # | |
Defined in Database.PostgreSQL.Replicant.State Methods showsPrec :: Int -> WalProgress -> ShowS # show :: WalProgress -> String # showList :: [WalProgress] -> ShowS # |
newtype WalProgressState Source #
Constructors
WalProgressState (MVar WalProgress) |
updateWalProgress :: WalProgressState -> LSN -> IO () Source #