lib/pghero/methods/replication.rb in pghero-3.2.0 vs lib/pghero/methods/replication.rb in pghero-3.3.0

- old
+ new

@@ -16,11 +16,11 @@ "pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn()" else "pg_last_xlog_receive_location() = pg_last_xlog_replay_location()" end - select_one <<-SQL + select_one <<~SQL SELECT CASE WHEN NOT pg_is_in_recovery() OR #{lag_condition} THEN 0 ELSE EXTRACT (EPOCH FROM NOW() - pg_last_xact_replay_timestamp()) END @@ -30,10 +30,10 @@ end def replication_slots if server_version_num >= 90400 with_feature_support(:replication_slots, []) do - select_all <<-SQL + select_all <<~SQL SELECT slot_name, database, active FROM pg_replication_slots