Andres Freund <andres@anarazel.de> writes:
> Am I missing something or is md.c:mdtruncate() leaking open files?
Yeah, I think you're right.
> This only really matters for VACUUM truncate and ON COMMIT TRUNCATE temp
> table truncation afaics.
Also, you'd need a table > 1GB to leak anything at all, which probably
helps explain why it hasn't been noticed.
regards, tom lane