Re: [BUG] [PATCH] pg_basebackup produces wrong incremental files after relation truncation in segmented tables

2025-12-18 Thread Oleg Tkachenko
Hi,Here is a refactored test.Now, it creates data depending on the relation block size, so it works even if the segment size is not standard. I tested it locally with segment_size_blocks = 6, and it works correctly.I would be happy to hear your comments or suggestions.Regards,Oleg 0001-Clamp-trunc

Re: [BUG] [PATCH] pg_basebackup produces wrong incremental files after relation truncation in segmented tables

2025-12-16 Thread Oleg Tkachenko
-correctness-of-the-truncation_block_length-.patch Description: Binary data On Dec 15, 2025, at 21:13, Robert Haas wrote:On Mon, Dec 15, 2025 at 1:46 PM Oleg Tkachenko wrote:Also, I’ve attached a patch based on your guidance. The changes are effectively the same as your suggested approach, but I would be

Re: [BUG] [PATCH] pg_basebackup produces wrong incremental files after relation truncation in segmented tables

2025-12-15 Thread Oleg Tkachenko
included in incremental backups.I’ve tested the version with the limit enforced to RELSEG_SIZE, and it works correctly.Also, I’ve attached a patch based on your guidance. The changes are effectively the same as your suggested approach, but I would be happy to be listed as a contributor.Regards,Oleg

Re: [BUG] [PATCH] pg_basebackup produces wrong incremental files after relation truncation in segmented tables

2025-12-15 Thread Oleg Tkachenko
revise it if needed.Best regards,Oleg Tkachenko<> On Nov 14, 2025, at 20:43, Oleg Tkachenko wrote:Hello PostgreSQL developers,I’ve encountered a bug in the incremental backup feature that prevents restoration of backups containing relations larger than 1 GB that were vacuum-truncated.P

[BUG] pg_basebackup produces wrong incremental files after relation truncation in segmented tables

2025-11-14 Thread Oleg Tkachenko
up.Attempt to restore using pg_combinebackup.Observe the truncation block length error.PatchA patch correcting this logic is attached, and I’m happy to provide additional details or revisions if helpful.Best regards,Oleg Tkachenko bug_truncation_block_length.patch Description: Binary data