From: Erik Wienhold <ewie@ewie.name>
To: lz ma <ma100@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: The logfile stop upgrade after a vim write
Date: Thu, 4 May 2023 12:37:48 +0200 (CEST)
Message-ID: <1020808879.1647740.1683196668023@office.mailbox.org> (raw)
In-Reply-To: <TYWP286MB3002B9499CF02778A86C747DF26D9@TYWP286MB3002.JPNP286.PROD.OUTLOOK.COM>
References: <TYWP286MB3002B9499CF02778A86C747DF26D9@TYWP286MB3002.JPNP286.PROD.OUTLOOK.COM>
> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ewie@ewie.name, ma100@hotmail.com
Subject: Re: The logfile stop upgrade after a vim write
In-Reply-To: <1020808879.1647740.1683196668023@office.mailbox.org>
References: <TYWP286MB3002B9499CF02778A86C747DF26D9@TYWP286MB3002.JPNP286.PROD.OUTLOOK.COM> <1020808879.1647740.1683196668023@office.mailbox.org>
* 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