Re: thousand unrelated data files in pg_default tablespace - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: thousand unrelated data files in pg_default tablespace
Date
Msg-id AANLkTinRopCnK_8U-FqeD4oOqguN1uXMDEufLtiY9DQ0@mail.gmail.com
Whole thread Raw
In response to Re: thousand unrelated data files in pg_default tablespace  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
2010/9/3 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>:
> On 03/09/10 11:16, Pavel Stehule wrote:
>>
>> 2010/8/31 Tom Lane<tgl@sss.pgh.pa.us>:
>>>
>>> Pavel Stehule<pavel.stehule@gmail.com>  writes:
>>>>
>>>> there is a dump from 8KB files
>>>
>>> Well, those certainly look like tables/indexes not temp files.
>>> So we can rule out one theory.
>>>
>>> You're *certain* these aren't referenced from pg_class.relfilenode
>>> of any of the databases in the server?
>>
>> I have a info, so these files are not in pg_class.relfilenode. More -
>> these files are three months old, and in this time was server two
>> times restarted.
>
> Maybe they're tables that were created in a transaction, but the process
> crashed hard before committing? Like:
>
> BEGIN;
> CREATE TABLE foo (...);
> COPY foo FROM ...;
> kill -9 postgres

yes, it's possible - but there are not any record about server crash -
sometimes client crashes.

Regards

Pavel
>
> That will leave behind a file like that. Do you do something like that in
> the application?
>
> --
>  Heikki Linnakangas
>  EnterpriseDB   http://www.enterprisedb.com
>


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Streaming a base backup from master
Next
From: Boszormenyi Zoltan
Date:
Subject: Re: Synchronization levels in SR