Re: [HACKERS] Orphaned files in base/[oid] - Mailing list pgsql-hackers

From Chris Travers
Subject Re: [HACKERS] Orphaned files in base/[oid]
Date
Msg-id CAN-RpxA1NwmfQ_MboT=v=KuSBvc=1xwdp76trr4VxvGH48bizA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Orphaned files in base/[oid]  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers


On Wed, Aug 16, 2017 at 7:15 PM, Andres Freund <andres@anarazel.de> wrote:


I think this entirely is the wrong approach.  We shouldn't add weird
check commands that require locks on pg_class, we should avoid leaving
the orphaned files in the first place.  I've upthread outlined
approached how to do so.

And in the mean time I suppose there is no reason that the approach I have outlined cannot be used by an external program.    I think it is sane to draw the line at having the db responsible for cleaning up after itself when something goes wrong and leave external programs to do after-the-fact review and cleanup. 

Greetings,

Andres Freund



--
Best Regards,
Chris Travers
Database Administrator

Tel: +49 162 9037 210 | Skype: einhverfr | www.adjust.com 
Saarbrücker Straße 37a, 10405 Berlin

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] Quorum commit for multiple synchronous replication.
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Quorum commit for multiple synchronous replication.