Class: Pgoutput::Client::SlotStatusData
- Inherits:
-
Data
- Object
- Data
- Pgoutput::Client::SlotStatusData
- Defined in:
- lib/pgoutput/client/slot_status.rb,
sig/pgoutput/client/slot_status.rbs
Overview
Immutable snapshot of one PostgreSQL logical replication slot.
Fields introduced by newer PostgreSQL versions are nil when the server
does not expose them. The client reports transport/catalog state only;
downstream runtimes remain responsible for deciding whether a checkpoint
can safely resume from this slot.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#active_pid ⇒ Object
readonly
Returns the value of attribute active_pid.
-
#catalog_xmin ⇒ Object
readonly
Returns the value of attribute catalog_xmin.
-
#confirmed_flush_lsn ⇒ Object
readonly
Returns the value of attribute confirmed_flush_lsn.
-
#conflicting ⇒ Object
readonly
Returns the value of attribute conflicting.
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#inactive_since ⇒ Object
readonly
Returns the value of attribute inactive_since.
-
#invalidation_reason ⇒ Object
readonly
Returns the value of attribute invalidation_reason.
-
#plugin ⇒ Object
readonly
Returns the value of attribute plugin.
-
#restart_lsn ⇒ Object
readonly
Returns the value of attribute restart_lsn.
-
#retained_wal_bytes ⇒ Object
readonly
Returns the value of attribute retained_wal_bytes.
-
#safe_wal_size ⇒ Object
readonly
Returns the value of attribute safe_wal_size.
-
#slot_name ⇒ Object
readonly
Returns the value of attribute slot_name.
-
#slot_type ⇒ Object
readonly
Returns the value of attribute slot_type.
-
#wal_status ⇒ Object
readonly
Returns the value of attribute wal_status.
Class Method Summary collapse
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def active @active end |
#active_pid ⇒ Object (readonly)
Returns the value of attribute active_pid
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def active_pid @active_pid end |
#catalog_xmin ⇒ Object (readonly)
Returns the value of attribute catalog_xmin
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def catalog_xmin @catalog_xmin end |
#confirmed_flush_lsn ⇒ Object (readonly)
Returns the value of attribute confirmed_flush_lsn
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def confirmed_flush_lsn @confirmed_flush_lsn end |
#conflicting ⇒ Object (readonly)
Returns the value of attribute conflicting
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def conflicting @conflicting end |
#database ⇒ Object (readonly)
Returns the value of attribute database
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def database @database end |
#inactive_since ⇒ Object (readonly)
Returns the value of attribute inactive_since
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def inactive_since @inactive_since end |
#invalidation_reason ⇒ Object (readonly)
Returns the value of attribute invalidation_reason
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def invalidation_reason @invalidation_reason end |
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def plugin @plugin end |
#restart_lsn ⇒ Object (readonly)
Returns the value of attribute restart_lsn
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def restart_lsn @restart_lsn end |
#retained_wal_bytes ⇒ Object (readonly)
Returns the value of attribute retained_wal_bytes
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def retained_wal_bytes @retained_wal_bytes end |
#safe_wal_size ⇒ Object (readonly)
Returns the value of attribute safe_wal_size
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def safe_wal_size @safe_wal_size end |
#slot_name ⇒ Object (readonly)
Returns the value of attribute slot_name
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def slot_name @slot_name end |
#slot_type ⇒ Object (readonly)
Returns the value of attribute slot_type
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def slot_type @slot_type end |
#wal_status ⇒ Object (readonly)
Returns the value of attribute wal_status
13 14 15 |
# File 'lib/pgoutput/client/slot_status.rb', line 13 def wal_status @wal_status end |
Class Method Details
.new ⇒ Object
20 |
# File 'sig/pgoutput/client/slot_status.rbs', line 20
def self.new: (
|