Bug #42011 | Add a File_date column in the output of SHOW BINARY LOGS | ||
---|---|---|---|
Submitted: | 10 Jan 2009 4:34 | Modified: | 12 Jan 2009 10:28 |
Reporter: | Santo Leto | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S4 (Feature request) |
Version: | 5.1, 6.0 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | binlogs, File_date, purge binlogs, show binary logs |
[10 Jan 2009 4:34]
Santo Leto
[12 Jan 2009 10:28]
Susanne Ebrecht
Many thanks for writing a feature request. We will discuss this.
[15 Feb 2014 15:17]
Daniël van Eeden
I've made a proof-of-concept which adds a unix timestamp based on the ctime of the file to the output. mysql> SHOW BINARY LOGS; +------------------------------+-----------+------------+ | Log_name | File_size | Timestamp | +------------------------------+-----------+------------+ | mysql_sandbox5616-bin.000001 | 179 | 1392476093 | | mysql_sandbox5616-bin.000002 | 179 | 1392476109 | | mysql_sandbox5616-bin.000003 | 143 | 1392476597 | | mysql_sandbox5616-bin.000004 | 120 | 1392476789 | +------------------------------+-----------+------------+ 4 rows in set (0.00 sec) The code is available here: https://code.launchpad.net/~dveeden/mysql-server/binlogtimestamp
[15 Feb 2014 15:18]
Daniël van Eeden
Patch which add the timestamp column (PoC, not production ready)
Attachment: mysql_binlogts.patch (text/x-diff), 1.25 KiB.
[15 Feb 2014 15:29]
Daniël van Eeden
Correction: My code uses the mtime instead of the ctime