Re: [HACKERS] mdtruncate leaking fd.c handles?
On 2016-09-08 15:50:42 -0700, Andres Freund wrote: > > Andres Freundwrites: > > > Am I missing something or is md.c:mdtruncate() leaking open files? > Will fix. And done. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
Re: [HACKERS] mdtruncate leaking fd.c handles?
On 2016-09-08 18:39:56 -0400, Tom Lane wrote: > Andres Freundwrites: > > 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. Heh, this bug is of some older vintage... Appears to originate in 1a5c450f3024ac57cd6079186c71b3baf39e84eb - before that we did a FileUnlink(), which includes a FileClose(). Will fix. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
Re: [HACKERS] mdtruncate leaking fd.c handles?
Andres Freundwrites: > 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers