Patch for migration of the pg_commit_ts directory v2

ls7777 <ls7777@yandex.ru>

From: ls7777 <ls7777@yandex.ru>
To: "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>, "amit.kapila16@gmail.com" <amit.kapila16@gmail.com>, "orlovmg@gmail.com" <orlovmg@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-10-04T16:08:06Z
Lists: pgsql-hackers

Attachments

  Hi


   


  
    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.