Re: Patch for migration of the pg_commit_ts directory

From: ls7777 <ls7777(at)yandex(dot)ru>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "orlovmg(at)gmail(dot)com" <orlovmg(at)gmail(dot)com>, "amit(dot)kapila16(at)gmail(dot)com" <amit(dot)kapila16(at)gmail(dot)com>
Subject: Re: Patch for migration of the pg_commit_ts directory
Date: 2026-04-05 18:27:00
Message-ID: 5007211775411625@mail.yandex.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi,

 

I fixed the compiler warnings.

 


I want to ask. Do I need to restore replication sources in my patch created by calling the pg_replication_origin_create function?


Currently, these replication sources are not being migrated to the new cluster.



Maybe it should be done later. If there are users who use it.


 

----------------

Кому: Hayato Kuroda (Fujitsu) (kuroda(dot)hayato(at)fujitsu(dot)com), Masahiko Sawada (sawada(dot)mshk(at)gmail(dot)com);

Копия: pgsql-hackers(at)postgresql(dot)org, orlovmg(at)gmail(dot)com, amit(dot)kapila16(at)gmail(dot)com;

Тема: Patch for migration of the pg_commit_ts directory;

21.03.2026, 13:59, "ls7777" <ls7777(at)yandex(dot)ru>:



Hi,


 



The patch has been significantly updated.


1. Added the --pg-commit-ts command line key for pg_upgrade.


Migration of the pg_commit_ts directory will be performed only if the user explicitly wishes.


2. The roident values are being transferred from pg_replication_origin to a new cluster to resolve conflict messages {UPDATE|DELETE}_ORIGIN_DIFFERS.


 


During testing, it turned out that the replication sources created by the pg_replication_origin_create('no_link_sub_4') functions are not migrated to the new cluster. This is probably a bug.


 


The principle of operation: A query to the old cluster generates SQL commands for roident adjustments, which are then executed in the new cluster.


 



 

Attachment Content-Type Size
unknown_filename text/html 1.6 KB
v13-Migration-of-the-pg_commit_ts-directory.patch text/x-diff 19.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2026-04-05 18:27:54 Re: Parallel Bitmap Heap Scan reports per-worker stats in EXPLAIN ANALYZE
Previous Message Heikki Linnakangas 2026-04-05 18:24:35 Re: Duplicate RequestNamedLWLocktranche() names and test_lwlock_tranches improvements