Copyright | (c) James King 2020 2021 |
---|---|
License | BSD3 |
Maintainer | james@agentultra.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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 #
Instances
Eq WalProgress Source # | |
Defined in Database.PostgreSQL.Replicant.State (==) :: WalProgress -> WalProgress -> Bool # (/=) :: WalProgress -> WalProgress -> Bool # | |
Show WalProgress Source # | |
Defined in Database.PostgreSQL.Replicant.State showsPrec :: Int -> WalProgress -> ShowS # show :: WalProgress -> String # showList :: [WalProgress] -> ShowS # |
newtype WalProgressState Source #
updateWalProgress :: WalProgressState -> LSN -> IO () Source #