https://github.com/postgrespro/pg_probackup/blob/master/src/catalog.c#L1570 We should use malloc here.