From: Tom Lane <tgl@sss.pgh.pa.us>
To: Loles <lolesft@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Which postgres process cleans up deprecated datafiles
Date: Thu, 17 Mar 2022 14:40:11 -0400
Message-ID: <791982.1647542411@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+FWGK6o6Fb4XNr38v_To4cW-a_Cx+NN8QONmb=-wMfb2YCwyg@mail.gmail.com>
References: <CA+FWGK6o6Fb4XNr38v_To4cW-a_Cx+NN8QONmb=-wMfb2YCwyg@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, lolesft@gmail.com
Subject: Re: Which postgres process cleans up deprecated datafiles
In-Reply-To: <791982.1647542411@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox