FileUnlink is broken, but it's dead code anyway

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: FileUnlink is broken, but it's dead code anyway
Date: 2007-07-26 00:04:56
Message-ID: 13793.1185408296@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2007-07-26 00:51:22 Re: Machine available for community use
Previous Message Tom Lane 2007-07-25 21:51:28 Re: strange buildfarm failure on lionfish