class PG::Replication::Connection

Defined in:

pg/replication.cr

Instance Method Summary

Instance Method Detail

def close #

[View source]
def closed? : Bool #

[View source]
def handler : Handler #

[View source]
def keepalive_interval : Time::Span #

How often the backstop fiber sends a standby status update to keep the server from tripping its wal_sender_timeout. Ideally set to less than half of that timeout to avoid being disconnected by the Postgres server. Defaults to 10 seconds.


[View source]
def last_wal_byte_applied : Int64 #

[View source]
def last_wal_byte_applied=(last_wal_byte_applied : Int64) #

[View source]
def last_wal_byte_flushed : Int64 #

[View source]
def last_wal_byte_flushed=(last_wal_byte_flushed : Int64) #

[View source]
def last_wal_byte_received : Int64 #

[View source]
def publication_name : String #

[View source]
def received(frame : ErrorFrame) #

[View source]
def received(data : XLogData) #

Handle the XLogData message that wraps WALMessages


[View source]
def received(response : KeepAliveResponse) #

This shouldn't ever be received, but it can be represented in memory so we need to include it for completeness.


[View source]
def send_keepalive #

[View source]
def slot_name : String #

[View source]