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 1n1WAi-0001Me-VE for pgsql-general@arkaria.postgresql.org; Sun, 26 Dec 2021 16:14:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n1WAg-0003tn-Fg for pgsql-general@arkaria.postgresql.org; Sun, 26 Dec 2021 16:14:54 +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 1n1WAg-0003te-5L for pgsql-general@lists.postgresql.org; Sun, 26 Dec 2021 16:14:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1WAd-0002OP-JX for pgsql-general@lists.postgresql.org; Sun, 26 Dec 2021 16:14:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BQGEn6s1336160; Sun, 26 Dec 2021 11:14:49 -0500 From: Tom Lane To: Lucas cc: pgsql-general@lists.postgresql.org Subject: Re: Wal files in /pgsql/14/main/pg_wal not removed In-reply-to: <433EA59F-22DF-4ADA-AB43-F53A263C43D2@sud0.nz> References: <433EA59F-22DF-4ADA-AB43-F53A263C43D2@sud0.nz> Comments: In-reply-to Lucas message dated "Mon, 27 Dec 2021 01:09:31 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1336158.1640535289.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 26 Dec 2021 11:14:49 -0500 Message-ID: <1336159.1640535289@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Lucas writes: > My /pgsql/14/main/pg_wal directory is filling up. The server is not resp= ecting the wal_keep_size =3D 100GB. I have no replication slots in this se= rver, and I have already restarted PostgreSQL. = > I don=E2=80=99t know what else to look for. Would appreciate any help. > archive_mode =3D on > archive_command =3D '/pgsql/pg-archive-wal-to-slaves.sh "%p"' You have archive_mode on, so WAL files will not be removed until your archive_command reports success. Poke around in what that's doing. regards, tom lane