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 1hBlCb-0005lN-3e for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 19:05:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBlCZ-0001nR-K2 for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 19:05:35 +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 1hBlCY-0001mz-WA for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 19:05:35 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBlCW-0000Xp-HV for pgsql-general@postgresql.org; Wed, 03 Apr 2019 19:05:33 +0000 Received: by mail-io1-xd43.google.com with SMTP id n11so15041012ioh.1 for ; Wed, 03 Apr 2019 12:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=chqXlGskC9pgRmQs1SQpAD4XVrZ6FWo81pBzdwogYX8=; b=Pz5iQ77yRJ5VIEQHjnXt3gTsoO93oCRFr+LPFpI9xVMNCKR+nt+eVOk++r+XmgxLSM hu8BXsTLJtESzB+aG2rPOzjAaDgLu5sjF/oJBtzfb/nED9d99LyQdD8Ko5+d2f6seiT9 5fJC1by4gy39AK/QXLCuMbI6wNPHGamHiOqvO0+/SL0pqB31nxUXgAhOxzOiKenMkxsV mkRQkpSQkdo8E7xweHM6Jgm8N+E7pjS6sP2rTc9BHMXBZac1fEErRhZ9CtUylGfP8HQY LPIrLCJN5ZL9DjNtIbivxFqkinXCJYqEaMOJRkYyyY7ut7HhgWiml+r96XY50JbpcJiL 5Tjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=chqXlGskC9pgRmQs1SQpAD4XVrZ6FWo81pBzdwogYX8=; b=WTyLWUhjKwjApLH7EzzWUErnMA2AaYRy7Vzl9u45IEGFMZn1zzxFJQQEDLbFOlz38X Mj8V9V/QCVUc4b0f0t6uunLx4sEA9ZBQOFztDbrq0P6KUBI1QUXsOBuzmxFZQAJbq9Mh 7q0rlrcoAbYCWZeaeApTUqOrXr8MPbOB855WGVnshyZjP1c3oeP/wKEgr9dRJIDGt23t Zhk6rRT9ffNZSGTPL82ehDwMty6HCzbWdev7k6DfPRbzR8nAVoCGommYil5tnjW3PgUj q+Prscl8zU3eYhIjIbtel2xp+Rco4pFXUr3M5SOFKlBo1HPjRL2sWYVkl94p1J9PCZ7o ZjFw== X-Gm-Message-State: APjAAAVdsG4TLIzzOdF44Rl7P07eQKwpopejkrnTuqs64gKWuDH5Sj/U RPMdTSM2AqxHB1eLxqDYNfc= X-Google-Smtp-Source: APXvYqwPvNqdm9uvE31NOgV5225T9A+APwL+q0I4UT2YhWpA9Qqq6g2Dqk+sNr8oxVGJTD/MmRIVfg== X-Received: by 2002:a6b:700d:: with SMTP id l13mr1360558ioc.248.1554318331430; Wed, 03 Apr 2019 12:05:31 -0700 (PDT) Received: from [192.168.1.108] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id n4sm6891915ioh.52.2019.04.03.12.05.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 12:05:29 -0700 (PDT) From: Rob Sargent Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_B2ADF725-1FA9-44E0-AC2B-343DD30FBCAD" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: stale WAL files? Date: Wed, 3 Apr 2019 13:05:28 -0600 In-Reply-To: Cc: Michael Paquier , Adrian Klaver , "pgsql-general@postgresql.org" To: Rene Romero Benavides 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> X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_B2ADF725-1FA9-44E0-AC2B-343DD30FBCAD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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 > wrote: > >>>=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 = processed (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 >=20 >=20 >=20 > 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 >=20 > BTW , how spread apart are checkpoints happening? do you have stats on = that? maybe they're too spread apart and that's why WAL files cannot be = recycled rapidly enough? =20 > --=20 > El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. > Thomas Alva Edison > http://pglearn.blogspot.mx/ >=20 two attempts (one in-line, one with attachement) at sending = postgresql.conf and pg_settings report have been sent to a moderator. --Apple-Mail=_B2ADF725-1FA9-44E0-AC2B-343DD30FBCAD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

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


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

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


> 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> wrote:
>>>
>>> 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 = processed (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

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: 
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

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


BTW , = how spread apart are checkpoints happening? do you have stats on that? = maybe they're too spread apart and 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/

two attempts (one in-line, one with attachement) at = sending postgresql.conf and pg_settings report have been sent to a = moderator.


= --Apple-Mail=_B2ADF725-1FA9-44E0-AC2B-343DD30FBCAD--