Re: Which postgres process cleans up deprecated datafiles - Mailing list pgsql-admin

From Tom Lane
Subject Re: Which postgres process cleans up deprecated datafiles
Date
Msg-id 791982.1647542411@sss.pgh.pa.us
Whole thread Raw
In response to Which postgres process cleans up deprecated datafiles  (Loles <lolesft@gmail.com>)
List pgsql-admin
Loles <lolesft@gmail.com> writes:
> What postgres process, or system, identify and delete datafiles that have
> become unassociated? The truncate operation doesn't appear to be.. the
> datafile has existed for some time after the truncate command execution
> finished.

The zero-length file is a placeholder to ensure that that relfilenode
number doesn't get re-used right away.  It'll get cleaned up during
the next checkpoint.

            regards, tom lane



pgsql-admin by date:

Previous
From: Loles
Date:
Subject: Which postgres process cleans up deprecated datafiles
Next
From: Hosney Osman
Date:
Subject: docker pgadmin