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 1h8oLe-0004tv-Bg for pgsql-general@arkaria.postgresql.org; Tue, 26 Mar 2019 15:50:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8oLd-0004A8-4i for pgsql-general@arkaria.postgresql.org; Tue, 26 Mar 2019 15:50:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8oLc-00049F-SB for pgsql-general@lists.postgresql.org; Tue, 26 Mar 2019 15:50:44 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8oLa-0002ZZ-MG for pgsql-general@postgresql.org; Tue, 26 Mar 2019 15:50:44 +0000 Received: by mail-pf1-x443.google.com with SMTP id p10so8270188pff.3 for ; Tue, 26 Mar 2019 08:50:42 -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=FSfBdwDdDHEftLwUx7kAWFvmI53FPjHt5ssaolPYeiU=; b=f9rrywxC4SWLfJdcJKNk/qSn9fjvatW074np8fNAE5yLC54lZLT35YiHk7gAZQGdob MPOk2IBX4XbK4OxB0CmmplXNVbiJd3FjtGiH7nQeMKChoYk5E2WIuPyNAKgK7mh577O+ pDBnIvVv1OxEWh2nMaXAWvmHW2p2BTKjtaWN7NHykouredMkULggJlCELGNp6WPqitap ta8VKQiV09BodtVHG4BpiljrvzKisKk1cqlNNi56PED5GqZdfQBNmh7hED8PjNl5oieB X2U1gBW+dLO58SxeS6NpigPqHP2STqi4iMuCZB2FRrmA1zoZzBfFpzSzRFjhLHtKo9QP mStQ== 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=FSfBdwDdDHEftLwUx7kAWFvmI53FPjHt5ssaolPYeiU=; b=kgmaInEo+shlzmA6abJw2Vyzj0JlVsXeOAdQU+tcQj/Y4PeQ15h1zYzmXM9+uXfCbc jwYaXctRqHn9Wadx0OS6r4x2QLxODwtvzxhQvXHHr3bWzQDItaHv/Omsmr+EPJkN8PXS +ZUeQn45EAK+qtNHHKShDF/+Dm264RJ/78svAbpbG9tZ8pFAVr5gNyzoBb2Nrjqs1a++ I2ny7gX+VgyM8rnZ03eUsp3pD+OsuVxDZJj5iZPGczGWNL3qvUN8i9rDv/vz2JnU6gw+ 5cPA19kNGCYaaQTJVnzd3au9CCgqVwS/dv7M8c773rZksjvWCf2deslAhCMAP4aXs89B yAog== X-Gm-Message-State: APjAAAXXBF+DnXOnxQiThGMG/CejjvQ4YuInH/9Gce79SBRCK3abrTVx I6JU/x8uC8VHeW/a1t/i+kErRrXJ X-Google-Smtp-Source: APXvYqwJvjejAHAotaxunaSwdEdBqL1tQpeIyorA4vJdeP/tb74zPucn/kZyqZfs8Z1ZSATxlcPg2A== X-Received: by 2002:a62:174c:: with SMTP id 73mr30469651pfx.33.1553615439181; Tue, 26 Mar 2019 08:50:39 -0700 (PDT) Received: from [10.106.132.66] ([155.100.47.2]) by smtp.gmail.com with ESMTPSA id x6sm23885467pfm.140.2019.03.26.08.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 08:50:38 -0700 (PDT) From: Rob Sargent Message-Id: <599C6022-1DA1-477D-895C-7E217D350B85@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_A3E87E1A-4208-49D1-BDCF-7C3EE20B2875" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: stale WAL files? Date: Tue, 26 Mar 2019 09:50:37 -0600 In-Reply-To: <3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.com> Cc: "pgsql-general@postgresql.org" To: Adrian Klaver References: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com> <3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.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=_A3E87E1A-4208-49D1-BDCF-7C3EE20B2875 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 26, 2019, at 8:08 AM, Adrian Klaver = wrote: >=20 > On 3/25/19 5:10 PM, Rob Sargent wrote: >> PG10.7, Centos7 >> On Mar15 we filled our default tablespace/WAL partition. Cleaned up = some old dumps and restarted. pg_wal had apparently exploded but cleaned = itself up by the next day. On Mar16 I ran CHECKPOINT in all databases on = that server (except template0). All seems fine except for 271 WALs from = MAR16 going nowhere fast. Of course we see transient WALS come and go = every day. We did a restart of the server last Friday (Mar22) without = issue. >> -rw-------. 1 postgres postgres 16777216 Mar 16 16:32 = 0000000100000CE9000000DD >> ...(269 others) >> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 = 0000000100000CEA000000E9 >> What=E2=80=99s keeping these alive. Or can they be deleted? Any = normal admin routine likely to clean these up? >=20 > wal_keep_segments? Commented out in postgres.conf >=20 > Do you have replication set up and replication slots in use? No, sorry I should have said that up front. We=E2=80=99re simple folk. --Apple-Mail=_A3E87E1A-4208-49D1-BDCF-7C3EE20B2875 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Mar 26, 2019, at 8:08 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

On 3/25/19 = 5:10 PM, Rob Sargent wrote:
PG10.7, Centos7
On = Mar15 we filled our default tablespace/WAL partition.  Cleaned up = some old dumps and restarted. pg_wal had apparently exploded but cleaned = itself up by the next day. On Mar16 I ran CHECKPOINT in all databases on = that server (except template0).  All seems fine except for 271 WALs = from MAR16 going nowhere fast.  Of course we see transient WALS = come and go every day.  We did a restart of the server last Friday = (Mar22) without issue.
-rw-------. 1 postgres postgres = 16777216 Mar 16 16:32 0000000100000CE9000000DD
 ...(269= others)
-rw-------. 1 postgres postgres 16777216 Mar 16 = 17:01 0000000100000CEA000000E9
What=E2=80=99s keeping = these alive.  Or can they be deleted? Any normal admin routine = likely to clean these up?

wal_keep_segments?
Commented out in = postgres.conf

Do you have = replication set up and replication slots in use?
No, sorry I should have said that = up front. We=E2=80=99re simple folk.

= --Apple-Mail=_A3E87E1A-4208-49D1-BDCF-7C3EE20B2875--