Method: ActiveRecord::PGExtensions::PostgreSQLAdapter#current_wal_lsn

Defined in:
lib/active_record/pg_extensions/postgresql_adapter.rb

#current_wal_lsnObject

[View source]

185
186
187
188
189
# File 'lib/active_record/pg_extensions/postgresql_adapter.rb', line 185

def current_wal_lsn
  return nil unless wal?

  select_value("SELECT #{pre_pg10_wal_function_name("pg_current_wal_lsn")}()")
end