diff --git a/helpers/postgresql.py b/helpers/postgresql.py index b9b74763..0a837640 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -187,7 +187,7 @@ class Postgresql: conn and conn.close() # if the size of the accumulated WAL segments is more than 5% of the backup size - we should use the pg_basebackup - return diff_in_bytes < long(backup_size) * 0.05 + return True or (diff_in_bytes < long(backup_size) * 0.05) def is_leader(self): return not self.query('SELECT pg_is_in_recovery()').fetchone()[0]