Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puWLU-000662-Te for pgsql-general@arkaria.postgresql.org; Thu, 04 May 2023 10:37:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puWLT-0001GW-UT for pgsql-general@arkaria.postgresql.org; Thu, 04 May 2023 10:37:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puWLT-0001GN-L1 for pgsql-general@lists.postgresql.org; Thu, 04 May 2023 10:37:55 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puWLR-000T8e-Ad for pgsql-general@lists.postgresql.org; Thu, 04 May 2023 10:37:54 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4QBqyh5cbhz9sSH; Thu, 4 May 2023 12:37:48 +0200 (CEST) Date: Thu, 4 May 2023 12:37:48 +0200 (CEST) From: Erik Wienhold To: lz ma , "pgsql-general@lists.postgresql.org" Message-ID: <1020808879.1647740.1683196668023@office.mailbox.org> In-Reply-To: References: Subject: Re: The logfile stop upgrade after a vim write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 04/05/2023 11:54 CEST lz ma 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