Next UDF functions are needed for implementing Point In Time Recovery for PXC in our k8s operator.
GTID Set by binlog file name
The method that accepts a binlog file name and returns all GTIDs which are stored inside the binlog file that passed to the method.
$ getGTIDSetByBinlog(“mysql-bin.000002”) $ 11ea-b9a7:7,11ea-b9a7:8
Binlog file name by GTID Set
The method that accepts a set of GTIDs and returns the name of the oldest binlog file which contains at least one GTID that was passed to the method and all GTIDs which are stored inside the returned binlog file.
$ getBinlogByGTIDSet(“11ea-b9a7:10,11ea-b9a7:11”) $ mysql-bin.000003/11ea-b9a7:9,11ea-b9a7:10,11ea-b9a7:11,11ea-b9a7:12
- is blocked by
PS-7348 Create a set of C++ classes/macros that would simplify the creation of new UDFs