Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBikT-000737-GH for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 16:28:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBikS-0002Hk-45 for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 16:28:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBikR-0002Hc-Hc for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 16:28:23 +0000 Received: from mail-it1-x143.google.com ([2607:f8b0:4864:20::143]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBikO-0005Z8-QM for pgsql-general@postgresql.org; Wed, 03 Apr 2019 16:28:22 +0000 Received: by mail-it1-x143.google.com with SMTP id z126so12027760itd.5 for ; Wed, 03 Apr 2019 09:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3NvLamEJ+nIlAjim2VSwkvgjLy5ivMyjPAkqx2UuoS4=; b=elrCcraVudliBjxIy0OyQtBxM5JJZ3MVtmSFQP99Yr2VaFxkl6Y+N4xh8rq8qUP6au 1O8a/CCc3oSd7AL0QVCHDl6nbbOEnsgMCMAFWJxUhnVWO/3ulTDeCgDNM8yXxzKgWPLQ lx2FNUYBDSykII/iTzd9Oi/9YR4lgyixwqKginCnVBuaZ0AiUA/lCLHLPp5GYG4KzJtW 4qxTiRCj88q71t1DFeLiAsqpx0ZKP8NEDVuIwpCDWnsHYScpX1ltueMEH/LBssfGkJm3 Kw3IN8yzvUtGG4+PBHtIekLaoCM80i50ws/QzHsz6Qullf7g1plv4znY+euUwp6FrNjN XSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3NvLamEJ+nIlAjim2VSwkvgjLy5ivMyjPAkqx2UuoS4=; b=Y854IixindfFtO2e1tBRx2vEuwnQyDu/islfCI4RE7IO1PikkYi2iNWvp2OLJGz46e 7ByEwPcf+Kr+4QeWllU1lC16oQkBhbdJJoEhio7YQ0nrnseOHswGd4b9opZSo2QXNqHc M7rpIVGnvDOu4Q1eg51aZldGFiOiy/XAjRlO6/4ubMXa+1uMnZqGQb8HhACklKVoAc9I Qi+cJgp5eJ8cHIuO5GstlHMA9n7xnzBFIrD4WsTiSaiB3qspAmIwdh4S3idUSdH71P3C JDXo5MirE1sE2qwh192RsWnyy9nizfZkJJhi+KgSkEk2KP2WfbCWSMXpX9FlMW2lKyCs EDeQ== X-Gm-Message-State: APjAAAWiK7rCCpbw8jMcs6+GcLTTR/2rNoUHwPHsVL4IN/HarOxqAyIA RSuW2oybp4gvPA+sBYI1nt5c7MOl X-Google-Smtp-Source: APXvYqxNYxvh9l6alM8l3NoVqYnvJVcRaT9u5PXeNo04Rju7Waz/J5iiZy183FdksRqD/YVw6evR8w== X-Received: by 2002:a24:1749:: with SMTP id 70mr1012117ith.50.1554308899434; Wed, 03 Apr 2019 09:28:19 -0700 (PDT) Received: from ?IPv6:2601:681:5500:1e3c:8903:209d:f2b3:42a4? ([2601:681:5500:1e3c:8903:209d:f2b3:42a4]) by smtp.gmail.com with ESMTPSA id y18sm6452541ioc.42.2019.04.03.09.28.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 09:28:18 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-F06F37D1-ED02-4ADA-8FD2-ACEA0FC40CE0 Mime-Version: 1.0 (1.0) Subject: Re: stale WAL files? From: Gmail X-Mailer: iPad Mail (15F79) In-Reply-To: Date: Wed, 3 Apr 2019 10:28:17 -0600 Cc: Michael Paquier , Adrian Klaver , "pgsql-general@postgresql.org" Content-Transfer-Encoding: 7bit Message-Id: References: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com> <3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.com> <599C6022-1DA1-477D-895C-7E217D350B85@gmail.com> <20190328133005.GB2558@paquier.xyz> <973f0fdf-e20f-a8a1-86c8-7f145eb31b70@gmail.com> <20190329125811.GF1954@paquier.xyz> <989E476E-D798-4F80-ADDE-3DA4EB9CAA3C@gmail.com> <6F2111AD-1CD9-4077-AA8B-F6E1F7AD809D@gmail.com> To: Rene Romero Benavides List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-F06F37D1-ED02-4ADA-8FD2-ACEA0FC40CE0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sorry folks, I=E2=80=99m still home nursing a nasty chest cold and my only t= ool today is an iPad. I have failed to get the postgresql.conf into the copy buffer so that, along= with the results of pg_settings, will have to wait for another day. Today there are =E2=80=9Conly=E2=80=9D 135 Mar 16 WAL files. I haven=E2=80=99= t sorted out which have been cleaned up but can do so if that=E2=80=99s thou= ght to be helpful. There is still 2.2G in the pg_wal directory but that disc has ~360G left. (I= believe the burst of WAL files was the result of a novice using LIMIT with a= to-Json function and the target table has >100M rows.) Given that current WALs come and go regularly, I think the CHECKPOINT is run= ning frequently enough (for normal loads at least). > On Apr 1, 2019, at 9:20 PM, Rene Romero Benavides wrote: >=20 >=20 >> On Mon, Apr 1, 2019 at 6:30 PM Rene Romero Benavides wrote: >>=20 >>> On Sat, Mar 30, 2019 at 5:03 PM Gmail wrote: >>>=20 >>>=20 >>> > On Mar 30, 2019, at 10:54 AM, Gmail wrote: >>> >=20 >>> >=20 >>> >>>> On Mar 29, 2019, at 6:58 AM, Michael Paquier w= rote: >>> >>>=20 >>> >>> On Thu, Mar 28, 2019 at 09:53:16AM -0600, Rob Sargent wrote: >>> >>> This is pg10 so it's pg_wal. ls -ltr >>> >>>=20 >>> >>>=20 >>> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33 >>> >>> 0000000100000CEA000000B1 >>> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33 >>> >>> 0000000100000CEA000000B2 >>> >>>=20 >>> >>> ... 217 more on through to ... >>> >>>=20 >>> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 >>> >>> 0000000100000CEA000000E8 >>> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 >>> >>> 0000000100000CEA000000E9 >>> >>> -rw-------. 1 postgres postgres 16777216 Mar 28 09:46 >>> >>> 0000000100000CEA0000000E >>> > I=E2=80=99m now down to 208 Mar 16 WAL files so they are being process= ed (at least deleted). I=E2=80=99ve taken a snapshot of the pg_wal dir such= that I can see which files get processed. It=E2=80=99s none of the files I=E2= =80=99ve listed previously >>>=20 >>> Two more have been cleaned up. 001C and 001D generated at 16:38 Mar 16 >> Please share your complete postgresql.conf file and the results from this= query:=20 >> SELECT * FROM pg_settings; >> has someone in the past configured wal archiving? >> You've ran out of disk space as this log message you shared states: >> No space left on device >> what's the output of df -h >>=20 >> --=20 >> El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. >> Thomas Alva Edison >> http://pglearn.blogspot.mx/ >=20 > BTW , how spread apart are checkpoints happening? do you have stats on tha= t? maybe they're too spread apart and that's why WAL files cannot be recycle= d rapidly enough? =20 > --=20 > El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. > Thomas Alva Edison > http://pglearn.blogspot.mx/ >=20 --Apple-Mail-F06F37D1-ED02-4ADA-8FD2-ACEA0FC40CE0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
S= orry folks, I=E2=80=99m still home nursing a nasty chest cold and my only to= ol today is an iPad.
I have failed to get the postgresql.conf into= the copy buffer so that, along with the results of pg_settings, will have t= o wait for another day.

Today there are =E2=80=9Con= ly=E2=80=9D 135 Mar 16 WAL files.  I haven=E2=80=99t sorted out which h= ave been cleaned up but can do so if that=E2=80=99s thought to be helpful.

There is still 2.2G in the pg_wal directory but that= disc has ~360G left. (I believe the burst of WAL files was the result of a n= ovice using LIMIT with a to-Json function and the target table has >100M r= ows.)

Given that current WALs come and go regularly= , I think the CHECKPOINT is running frequently enough (for normal loads at l= east).


On Apr 1, 2019, at 9:20 PM, Rene Romero B= enavides <rene.romero.b@gmail.= com> wrote:


On Mon, Apr 1, 2019 at 6:30 PM Rene Romero Benavides <= ;rene.romero.b@gmail.com> w= rote:

On Sat, Mar 30, 2019 at 5:03 PM Gmail <robjsargent@gmail.com> w= rote:


> On Mar 30, 2019, at 10:54 AM, Gmail <robjsargent@gmail.com> wrote:
>
>
>>>> On Mar 29, 2019, at 6:58 AM, Michael Paquier <michael@paquier.xyz> w= rote:
>>>
>>> On Thu, Mar 28, 2019 at 09:53:16AM -0600, Rob Sargent wrote: >>> This is pg10 so it's pg_wal.  ls -ltr
>>>
>>>
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>>> 0000000100000CEA000000B1
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>>> 0000000100000CEA000000B2
>>>
>>> ... 217 more on through to ...
>>>
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>>> 0000000100000CEA000000E8
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>>> 0000000100000CEA000000E9
>>> -rw-------. 1 postgres postgres 16777216 Mar 28 09:46
>>> 0000000100000CEA0000000E
> I=E2=80=99m now down to 208 Mar 16 WAL files so they are being processe= d (at least deleted).  I=E2=80=99ve taken a snapshot of the pg_wal dir s= uch that I can see which files get processed. It=E2=80=99s none of the files= I=E2=80=99ve listed previously

Two more have been cleaned up.  001C and 001D generated at 16:38 Mar 16=



Please share your complete postgresql.conf file and the r= esults from this query: 
SELECT * FROM pg_settings;
has s= omeone in the past configured wal archiving?
You've ran out of dis= k space as this log message you shared states:
No space left on device
what's the o= utput of df -h

--
El genio es 1% inspiraci=C3=B3n y 9= 9% transpiraci=C3=B3n.
Thomas Alva Edison
http://pglearn.blogspot.mx/


BTW , how spread apart are checkpo= ints happening? do you have stats on that? maybe they're too spread apart an= d that's why WAL files cannot be recycled rapidly enough?  
-= -
El genio es 1% inspiraci=C3= =B3n y 99% transpiraci=C3=B3n.
Thomas Alva Edison
http://pglearn.blogspot.mx/

=
= --Apple-Mail-F06F37D1-ED02-4ADA-8FD2-ACEA0FC40CE0--