Re: The logfile stop upgrade after a vim write
Erik Wienhold <ewie@ewie.name>
From: Erik Wienhold <ewie@ewie.name>
To: lz ma <ma100@hotmail.com>, "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2023-05-04T10:37:48Z
Lists: pgsql-general
> On 04/05/2023 11:54 CEST lz ma <ma100@hotmail.com> wrote: > > 1. pg_ctl -D data -l MyLog > 2. vim MyLog : add some words, save and exit > 3. after vim operation, MyLog will never upgrade except restart server > I know it caused by file descripter only open once at the start by postgres, > and vim operation rename the file to MyLog~, so postgres can't upgrade set backupcopy=yes in .vimrc But why would you edit active log files? -- Erik