On Sat, 5 Mar 2005, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>> Here's a patch for the TODO item "Remove unreferenced table files created by transactions
>> that were in-progress when the server terminated abruptly."
>
> xlog.c is a fairly random place to put that functionality. Didn't it
> strike any warning bells for you when you had to add so many new
> #includes? I'm not entirely sure where this should go, but not there.
Yeah actually it did, but I forgot about it along the way. How about
putting it in a file of its own in backend/catalog? There's some code that
also deals with the data directories. Or straight into backend/storage.
- Heikki