On Thu, Jan 19, 2023 at 1:12 PM Dmitry Koval <d.ko...@postgrespro.ru> wrote:
> >The patch does not apply on top of HEAD ... > > Thanks! > Here is a fixed version. > > Additional changes: > 1) get_operation_log() function doesn't create empty operation log file; > 2) removed extra unlink() call. > > -- > With best regards, > Dmitry Koval > > Postgres Professional: http://postgrespro.com Hi, Copyright (c) 1996-2022 Please update year for the license in pg_controllog.c +check_file_exists(const char *datadir, const char *path) There is existing helper function such as: src/backend/utils/fmgr/dfmgr.c:static bool file_exists(const char *name); Is it possible to reuse that code ? Cheers