Re: The logfile stop upgrade after a vim write - Mailing list pgsql-general

From Erik Wienhold
Subject Re: The logfile stop upgrade after a vim write
Date
Msg-id 1020808879.1647740.1683196668023@office.mailbox.org
Whole thread Raw
In response to The logfile stop upgrade after a vim write  (lz ma <ma100@hotmail.com>)
List 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



pgsql-general by date:

Previous
From: lz ma
Date:
Subject: The logfile stop upgrade after a vim write
Next
From: DAVID ROTH
Date:
Subject: Trigger questions