class PgConn::SessionMethods

def triggers?() conn.value "select current_setting('session_replication_role') <> 'replica'" end

default by Postgres
Return true if session triggers are enabled. Triggers are enabled by
def triggers?() conn.value "select current_setting('session_replication_role') <> 'replica'" end