RE: Conflict detection for update_deleted in logical replication

Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>

From: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: shveta malik <shveta.malik@gmail.com>, vignesh C <vignesh21@gmail.com>, Masahiko Sawada <sawada.mshk@gmail.com>, Nisha Moond <nisha.moond412@gmail.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-05-26T07:16:29Z
Lists: pgsql-hackers

Attachments

On Fri, May 23, 2025 at 7:08 PM Amit Kapila wrote:

> 
> On Thu, May 22, 2025 at 8:28 AM Zhijie Hou (Fujitsu) 
> <houzj.fnst@fujitsu.com> wrote:
> >
> > Attaching the V31 patch set which addressed comments in [1]~[8].
> >
> 
> Few comments:
> 
> Apart from the above comments, I made a few other cosmetic changes in 
> the attached.

Thanks for the comments and diff, I have merged them into the latest patch set.

Attaching the V32 patch set which addressed comments in [1]~[5].

[1] https://www.postgresql.org/message-id/CAFiTN-vd%3DrF0CK1sw-vdOAYSRaV_GMrO3VR0yTv%3Df2GKyOw%3Dbg%40mail.gmail.com
[2] https://www.postgresql.org/message-id/CAA4eK1Kd05tu9n%2Ba4LAmK-UWxTfcaanuLYD2e1Lt-2kiKzvwTw%40mail.gmail.com
[3] https://www.postgresql.org/message-id/CABPTF7U8SKpw%2BHepd4MJ%2BoPBAWdFmYukyk92TKLkZGHhQD4KaQ%40mail.gmail.com
[4] https://www.postgresql.org/message-id/CAA4eK1J%2BdmsB%3Dod4pkGBjZkeurpWGuRXOeXBbNRbh3hVUr7DxQ%40mail.gmail.com
[5] https://www.postgresql.org/message-id/CAJpy0uDEKO%2BqX1Y7WQar_o6nCPBQtenjG%3D8fE2NvKcwtFRs6hw%40mail.gmail.com

Best Regards,
Hou zj

Commits

  1. Fix intermittent BF failures in 035_conflicts.

  2. Resume conflict-relevant data retention automatically.

  3. Fix intermittent test failure introduced in 6456c6e2c4.

  4. Fix Coverity issue reported in commit a850be2fe.

  5. Add test to prevent premature removal of conflict-relevant data.

  6. Post-commit review fixes for 228c370868.

  7. Add max_retention_duration option to subscriptions.

  8. Detect and report update_deleted conflicts.

  9. Preserve conflict-relevant data during logical replication.

  10. Integrate FullTransactionIds deeper into two-phase code

  11. Improve checks for GUC recovery_target_timeline

  12. Prevent excessive delays before launching new logrep workers.

  13. Keep WAL segments by slot's last saved restart LSN

  14. Rework some code handling pg_subscription data in psql and pg_dump

  15. Use generateClonedIndexStmt to propagate CREATE INDEX to partitions.