hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.07k stars 112 forks source link

fix PG_AUTOCTL_MAX_TIMELINES #992

Closed dbamu closed 9 months ago

dbamu commented 1 year ago

ERROR history file "00000202.history" contains 1024 lines, pg_autoctl only supports up to 1023 lines https://github.com/hapostgres/pg_auto_failover/issues/991

dimitri commented 9 months ago

Proper way to fix would be to use dynamic memory.

c2main commented 9 months ago

What's the point in reading so much just to output to client ? Aren't the latest lines of the file enough ? ( this is just used for information purpose, isn't it ?)

dimitri commented 9 months ago

Well actually I did fix the problem in https://github.com/hapostgres/pg_auto_failover/pull/995