FileUnlink is broken, but it's dead code anyway

Поиск
Список
Период
Сортировка
От Tom Lane
Тема FileUnlink is broken, but it's dead code anyway
Дата
Msg-id 13793.1185408296@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
I just noticed that storage/file/fd.c's FileUnlink() is not referenced
anywhere, and apparently hasn't been since 7.4.  This is a good thing
because it doesn't work very well anymore: it's implemented by setting
the FD_TEMPORARY flag and then calling FileClose(), and the recent patch
to log sizes of temp files will be fooled into logging the size of the
removed file, whether it was really temp or not.

While we could fix this by splitting FD_TEMPORARY into two flags,
it seems a bit pointless when the function isn't being used.  Any votes
against just removing FileUnlink()?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: strange buildfarm failure on lionfish
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Machine available for community use