Re: mdtruncate leaking fd.c handles?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: mdtruncate leaking fd.c handles?
Дата
Msg-id 20160908225042.uzcursaj6ifvoif4@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: mdtruncate leaking fd.c handles?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: mdtruncate leaking fd.c handles?  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2016-09-08 18:39:56 -0400, Tom Lane wrote:
> 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.

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: mdtruncate leaking fd.c handles?
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: Logical Replication WIP