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 1lp7Vf-0001N1-TM for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 10:57:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lp7Ve-0008Jy-Tn for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 10:57:02 +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 1lp7Ve-0008Jp-Dn for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 10:57:02 +0000 Received: from mail1.dalibo.net ([212.83.143.11] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp7Vc-0005eE-6K for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 10:57:01 +0000 Received: from firost (larco.ioguix.net [78.202.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 1F56C2039B; Fri, 4 Jun 2021 12:56:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1622804217; bh=PvMiREkLevuRR0XLHi5oa7TldgZmbWUjnVhoAdnKfLk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=imCudvcxS8A4YPF707sUOiRedyvDBEky5jRf9sd9amT54esqgjcHF0K5j1DWW2T6d fP+EGgcUkbKYHSsIq8kf6nGkfnzUGceYRsnbZhGg0ZUJrtEZBmziSPmweouoP2jXpN Mj0Y1TEu2KZCEHFhof8ZOoebzIEelBYkX5kCmx6A= Date: Fri, 4 Jun 2021 12:56:56 +0200 From: Jehan-Guillaume de Rorthais To: Atul Kumar Cc: pgsql-general Subject: Re: strange behavior of WAL files Message-ID: <20210604125656.47938b0c@firost> In-Reply-To: References: Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 4 Jun 2021 15:39:30 +0530 Atul Kumar wrote: > HI, > > We have a centos 6 enviornment where postgres 9.6 is running on it. > > We have strange behavior of WAL files of pg_xlog directory > > As we have set archive_command to archive WAL files at different > location and the archive_command is working fine. > > So strange behavior is : > > We have a WAL file say for example "00000001000036CD000000E2" of > 01.06.2021 (1st June 2021) that is getting archive successfully at the > archive location and once it is archived, this file with same name > (00000001000036CD000000E2) is getting generated with the latest > timestamp (as today is 04.06.2021).and all old WAL files are behaving > in same manner. What is you archive_command? I'm not sure I understand correctly, but keep in mind your archive_command must be "read only". Do not remove the WAL file after archiving it. Regards,