[MDEV-22801] Make PURGE BINARY LOGS more flexible Created: 2020-06-04  Updated: 2020-07-06

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Right now PURGE BINARY LOGS has two modes:

  • purge logs before a specific date
  • purge logs older than a given binlog file name

For some situations it would also be convenient to have:

  • purge logs and only keep N latest files
  • purge logs if sum of binlog file sizes is beyond given size threshold

E.g.

PURGE BINARY LOGS KEEP LATEST 20;
PURGE BINARY LOGS BEYOND 100GB;

or similar.


Generated at Thu Feb 08 09:17:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.