class NixAdm::PostgreSQL::Replication::Secondary
Hot standby instance
Attributes
primary[R]
Public Class Methods
new(primary, host, config_file=nil)
click to toggle source
Calls superclass method
NixAdm::PostgreSQL::Replication::Node::new
# File src/lib/nixadm/db/postgresql.rb, line 55 def initialize(primary, host, config_file=nil) @primary = primary super(host, config_file) end
Public Instance Methods
currentLsm()
click to toggle source
# File src/lib/nixadm/db/postgresql.rb, line 61 def currentLsm() return @db.exec('select pg_last_wal_receive_lsn()')[0] end