Re: Reword docs of feature "Remove temporary files after backend crash" - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Reword docs of feature "Remove temporary files after backend crash"
Date
Msg-id 5ce989d7-be65-8c41-7f5d-1488433804f4@oss.nttdata.com
Whole thread Raw
In response to Re: Reword docs of feature "Remove temporary files after backend crash"  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Reword docs of feature "Remove temporary files after backend crash"  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Re: Reword docs of feature "Remove temporary files after backend crash"  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
List pgsql-hackers

On 2021/10/10 22:33, Bharath Rupireddy wrote:
>>> IIUC, the "server crash" includes any backend, auxiliary process,
>>> postmaster crash i.e. database cluster/instance crash. The commit
>>> cd91de0d1 especially added the temp file cleanup support if any
>>> backend or auxiliary process (except syslogger and stats collector)

We should mention not only a backend and an auxiliary processe
but also background worker? Because, per Glossary, background worker
is neither a backend nor an auxiliary process. Instead,
maybe it's better to use "child processes" or something rather than
mentioning those three processes.

> IMO, we can add the new description as proposed in my v1 patch (after
> adding startup process to the exception list) to both the GUCs
> restart_after_crash and remove_temp_files_after_crash. And, in
> remove_temp_files_after_crash GUC description we can just add a note
> saying "this GUC is effective only when restart_after_crash is on".

OK.

> Also, I see that the restart_after_crash and
> remove_temp_files_after_crash descriptions in guc.c say "Remove
> temporary files after backend crash.". I think we can also modify them
> to "Remove temporary files after the backend or auxiliary process
> (except startup, syslogger and stats collector) crash.

I'm not sure if we really need this long log message.
IMO it's enough to add that information in the docs.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: VS2022: Support Visual Studio 2022 on Windows
Next
From: vignesh C
Date:
Subject: Re: Added schema level support for publication.