Thank you all for the helpful tips. Many thanks to Alex Orlov for the test. He works.
I made a second version of the patch and took into account all the comments.
Patch description: When checking a new cluster, the value of the track_commit_timestamp parameter is determined.
If this parameter is set and the Latest checkpoint's oldestCommitTsXid and Latest checkpoint's newestCommitTsXid are set in the old cluster, then pg_comit_ts is copied.
The files were processed by pgindent.