On Wed, Aug 19, 2026 at 10:18:53AM +0800, Chao Li wrote: > I just took a deeper look at the code. If we handle the continue > defensively, then in theory nrelations could be 0. We should also > defensively skip ReorderBufferApplyTruncate() when nrelations == > 0. Looking at a callback function, for example, pgoutput_truncate() > in src/backend/replication/pgoutput/pgoutput.c appears to assume > that nrelations > 0, it doesn't specially handle nrelations == 0.
Right. We tend to be careful in terms of the closes in reorderbuffer.c anyway, so I've just applied the patch. -- Michael
signature.asc
Description: PGP signature
