Class: Pgoutput::Client::SlotStatusData

Inherits:
Data
  • Object
show all
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

SlotStatus

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#activeObject (readonly)

Returns the value of attribute active

Returns:

  • (Object)

    the current value of active



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def active
  @active
end

#active_pidObject (readonly)

Returns the value of attribute active_pid

Returns:

  • (Object)

    the current value of active_pid



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def active_pid
  @active_pid
end

#catalog_xminObject (readonly)

Returns the value of attribute catalog_xmin

Returns:

  • (Object)

    the current value of catalog_xmin



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def catalog_xmin
  @catalog_xmin
end

#confirmed_flush_lsnObject (readonly)

Returns the value of attribute confirmed_flush_lsn

Returns:

  • (Object)

    the current value of confirmed_flush_lsn



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def confirmed_flush_lsn
  @confirmed_flush_lsn
end

#conflictingObject (readonly)

Returns the value of attribute conflicting

Returns:

  • (Object)

    the current value of conflicting



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def conflicting
  @conflicting
end

#databaseObject (readonly)

Returns the value of attribute database

Returns:

  • (Object)

    the current value of database



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def database
  @database
end

#inactive_sinceObject (readonly)

Returns the value of attribute inactive_since

Returns:

  • (Object)

    the current value of inactive_since



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def inactive_since
  @inactive_since
end

#invalidation_reasonObject (readonly)

Returns the value of attribute invalidation_reason

Returns:

  • (Object)

    the current value of invalidation_reason



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def invalidation_reason
  @invalidation_reason
end

#pluginObject (readonly)

Returns the value of attribute plugin

Returns:

  • (Object)

    the current value of plugin



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def plugin
  @plugin
end

#restart_lsnObject (readonly)

Returns the value of attribute restart_lsn

Returns:

  • (Object)

    the current value of restart_lsn



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def restart_lsn
  @restart_lsn
end

#retained_wal_bytesObject (readonly)

Returns the value of attribute retained_wal_bytes

Returns:

  • (Object)

    the current value of 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_sizeObject (readonly)

Returns the value of attribute safe_wal_size

Returns:

  • (Object)

    the current value of safe_wal_size



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def safe_wal_size
  @safe_wal_size
end

#slot_nameObject (readonly)

Returns the value of attribute slot_name

Returns:

  • (Object)

    the current value of slot_name



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def slot_name
  @slot_name
end

#slot_typeObject (readonly)

Returns the value of attribute slot_type

Returns:

  • (Object)

    the current value of slot_type



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def slot_type
  @slot_type
end

#wal_statusObject (readonly)

Returns the value of attribute wal_status

Returns:

  • (Object)

    the current value of wal_status



13
14
15
# File 'lib/pgoutput/client/slot_status.rb', line 13

def wal_status
  @wal_status
end

Class Method Details

.newObject



20
# File 'sig/pgoutput/client/slot_status.rbs', line 20

def self.new: (