vitabaks / postgresql_cluster

Automated database platform for PostgreSQL® A modern, open-source alternative to cloud-managed databases.
https://postgresql-cluster.org
MIT License
1.83k stars 418 forks source link

patroni jinja tepmlate issue for maximum_lag_on_failover parameter #807

Closed garry-t closed 1 week ago

garry-t commented 1 week ago

In case you maximum_lag_on_failover: 0, will be applied default value, since 0 treats as False

garry-t commented 1 week ago

Fix https://github.com/vitabaks/postgresql_cluster/pull/808

vitabaks commented 1 week ago

Ok, thanks.

But I don't think anyone will set 0 as this will turn off autofailover at the slightest replication lag.