On Tue, Aug 18, 2026 at 11:51:48AM +0800, Chao Li wrote:
> In the loop, each relation that is appended to relations is closed
> after the loop. However, when RelationIsLogicallyLogged(rel) returns
> false, the relation is skipped without being closed, causing the
> leak.
Good catch. This code may over-allocate the set of relations it is
working on, and we would forget to close the once not logged. That's
wrong since 5dfd1e5a6696.
--
Michael