Thread: Re: [HACKERS] DROP TABLE leaks file descriptors

Re: [HACKERS] DROP TABLE leaks file descriptors

From
Tom Lane
Date:
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> But it is still true that DROP TABLE leaves a virtual
>> file descriptor open for each index on the dropped table, and that's
>> a bug in my book.

> AFAIC the patch by Ole Gjerde [gjerde@icebox.org] which has already 
> been appiled by Bruce Momjan would solve this problem. 
> Would you please ascertain the fact ?  

You are correct: I find that repeatedly creating and dropping a table
with an index does not leak file descriptors (either real or virtual)
as of yesterday's sources.  So this item can be removed from TODO.
        regards, tom lane