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 1mLNnh-0003P2-0G for pgsql-general@arkaria.postgresql.org; Wed, 01 Sep 2021 10:49:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLNng-0005QL-0J for pgsql-general@arkaria.postgresql.org; Wed, 01 Sep 2021 10:49:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLNnf-0005QC-KQ for pgsql-general@lists.postgresql.org; Wed, 01 Sep 2021 10:48:59 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mLNnc-0000NR-R9 for pgsql-general@postgresql.org; Wed, 01 Sep 2021 10:48:59 +0000 Received: by mail-wr1-x431.google.com with SMTP id g18so3738081wrc.11 for ; Wed, 01 Sep 2021 03:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=xxBz63DQvekEfnQlyKEmBe+jTosuv2mbsnkVTwGDAeU=; b=H3K6c+GIo1+a56KWwlOAcrif4pfpMlLzphYZTqj0aoqscQkftrOv3zHb+C29EHj8Mp a6n+54YxXZIekW2idgMw3EknJ993cDYiUwO1/Pgc1OB8cIh9L+5t66hed0gDUbfKdKEK l5wofR83stN0pTiEK7hO1Z2VgwdHlSUiZUwqE8Si3s/gkTJKCULnE4xsxur72vziYHeT hlaKN9Xfj5dmZkQWFPqZMI9MsPC9C7gdBlZrOwDDJ4rlfPX5jzsFf0e76c7ocjy1/nBI k93C8rT3+IbVNFqdr1Ar/qncoxtBs87laWyyy4VTkLCUItvJSCLMSp6x3GSNO+yR5Elz lwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=xxBz63DQvekEfnQlyKEmBe+jTosuv2mbsnkVTwGDAeU=; b=bBUUzkA3tAtSqQJ38vltLnRTRk4X94m6jsuqXTX/OKabzPrNgOBJwty6vaYqlE2SO8 5fFb8+FvUlijT+hQEi1DpO8ozk4ZgVao19Teh1bBzIKFS7SGVDhZFuXe83O1xNrj5yyg CrqtjHQm4ZLWGjo92NozDysb+6QM1B88XVqi1A4ixmEUPw7CeAaZYcdGoa/o1HjzUhao g5hF9nF2EygagLGJMfBZAqs6+zz+61QZdamABpnfQVwgAeWNRLfFkTmrKrCcPb70r/11 DN30MDp9U+BpFoN6E5c0XHYdQu/qdggnLSf8qLwHCQTaB50AUkNIV3ZVu40FbHO/U7YJ SUJQ== X-Gm-Message-State: AOAM532qg6Ysx+HmA6+G95sr/BI9s14lsmFDDh5il4WqQGRzmnVspZ5+ Z7Ev4mdbjEDOawmpaNrshZxhDS5wt1k= X-Google-Smtp-Source: ABdhPJw7CUTrbwJ3XBIE5BRFSKsNwzVvNlmHy5n6MM50RIIy/OZryGDzgX+6yTZSla1T47VUw5Erfw== X-Received: by 2002:a5d:6149:: with SMTP id y9mr37484474wrt.162.1630493332723; Wed, 01 Sep 2021 03:48:52 -0700 (PDT) Received: from Pavie ([2a01:e0a:51e:1cc0:6db7:b938:521c:2584]) by smtp.gmail.com with ESMTPSA id s12sm21335617wru.41.2021.09.01.03.48.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Sep 2021 03:48:51 -0700 (PDT) From: To: Subject: oldest WAL files not removed Date: Wed, 1 Sep 2021 12:48:51 +0200 Message-ID: <053c01d79f1e$f3ed4f10$dbc7ed30$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_053D_01D79F2F.B776E260" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdefE5rgEa+chFzPThG31URVc6us8g== Content-Language: fr List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_053D_01D79F2F.B776E260 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Looking at WAL folder after a crash, I noticed that new files after restarting overwrite the more recent files before the crash and not the oldest, which was what I expected. Is that normal ? I got only one file marked .deleted. Does that happens when a WAL file hase been completed updated in the database and if then while all oldest files aren't marked .deleted after restarting ? Example : Crash occurs Aug 31 22:03 which is the more recent Wal file, the oldest file is Aug 30 17:20 (and 105 files between those two) After restarting Aug 30 17:20 is still there, Aug 31 22:03 disappeared, one new file is Sep 1 12:15 marked .deleted (restarting date) and one new Sep 1 12:36 which I guess is normal. Right now, I see an new wal file and the previous one marked .deleted which is ok. Why are the oldest wal files still there ?? Can I remove them ? Hope I'm clear enough and thanks for explanations, Olivier ------=_NextPart_000_053D_01D79F2F.B776E260 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Looking at WAL folder after a crash, I noticed that new files after = restarting overwrite the more recent files before the crash and not the = oldest, which was what I expected.

Is that normal ?  I got only one file marked .deleted. Does = that happens when a WAL file hase been completed updated in the database = and if then while all oldest files aren’t marked .deleted after = restarting ?

 

Example :

Crash occurs Aug 31 22:03 which is the more recent Wal file, the oldest = file is Aug 30 17:20 (and 105 files between those = two)

After restarting Aug 30 17:20 is still there, Aug 31 22:03 = disappeared, one new file is Sep 1 12:15 marked .deleted (restarting = date) and one new Sep 1 12:36 which I guess is normal. Right now, I = see an new wal file and the previous one marked .deleted which is ok. =

 

Why are the oldest wal files still there ?? Can I remove = them ?

 

Hope I’m clear enough and thanks for = explanations,

 

Olivier

 

------=_NextPart_000_053D_01D79F2F.B776E260--