Re: Cleaning up unreferenced table files - Mailing list pgsql-patches

From Heikki Linnakangas
Subject Re: Cleaning up unreferenced table files
Date
Msg-id Pine.OSF.4.61.0504270109540.521717@kosh.hut.fi
Whole thread Raw
In response to Re: Cleaning up unreferenced table files  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-patches
On Tue, 26 Apr 2005, Heikki Linnakangas wrote:

> On Mon, 25 Apr 2005, Bruce Momjian wrote:
...
>> I guess I am happy with just reporting during startup like the patch
>> does now.
>
> Ok. I'll fix the design issues Tom addressed earlier, add documentation, and
> resubmit.

Here you go.

The new functionality is now separated in a new file
backend/utils/init/cleanup.c.

There was code in many places that constructs the path to a tablespace
directory. I refactored that into a new function called GetTablespacePath
and put it next to GetDatabasePath in catalog.c.

I added a section under the "Routine Database Maintenance Tasks" that
basically gives a heads up that these notifications can appear in the log
after a crash.

- Heikki

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Continue transactions after errors in psql
Next
From: John DeSoi
Date:
Subject: Re: [HACKERS] Continue transactions after errors in psql