Method: ActiveRecord::PGExtensions::PostgreSQLAdapter#wal?

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

#wal?Boolean

Amazon Aurora doesn’t have a WAL

Returns:

  • (Boolean)
[View source]

176
177
178
179
180
181
182
# File 'lib/active_record/pg_extensions/postgresql_adapter.rb', line 176

def wal?
  unless instance_variable_defined?(:@has_wal)
    function_name = pre_pg10_wal_function_name("pg_current_wal_lsn")
    @has_wal = select_value("SELECT true FROM pg_proc WHERE proname='#{function_name}' LIMIT 1")
  end
  @has_wal
end