Re: [HACKERS] DROP TABLE leaks file descriptors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] DROP TABLE leaks file descriptors
Date: 1999-05-17 05:11:43
Message-ID: 6600.926917903@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> 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(at)icebox(dot)org] which has already
>> been appiled by Bruce Momjan would solve this problem.

> I thought that patch was just for multi-segment tables, which does not
> fix the original problem.

But didn't Ole replace a call to FileNameUnlink with a call to mdunlink
(or some other higher level routine)? If mdunlink also closes the VFD
for the index, then that patch might indeed have fixed it. I'll try
the test case I had, and report back.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-05-17 05:20:29 State of v6.5 under FreeBSD
Previous Message Ole Gjerde 1999-05-17 05:11:09 Re: [HACKERS] v6.5 release ToDo