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 1l7Ka2-0004IL-IK for pgsql-admin@arkaria.postgresql.org; Wed, 03 Feb 2021 16:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7Ka0-00057A-Jc for pgsql-admin@arkaria.postgresql.org; Wed, 03 Feb 2021 16:00:32 +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 1l7Ka0-000571-C4 for pgsql-admin@lists.postgresql.org; Wed, 03 Feb 2021 16:00:32 +0000 Received: from evariste01.clarocloud.co.za ([196.13.181.165] helo=isando.evaristesys.co.za) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7KZu-00033N-4t for pgsql-admin@lists.postgresql.org; Wed, 03 Feb 2021 16:00:31 +0000 Received: from [216.66.0.135] (helo=[172.30.106.160]) by isando.evaristesys.co.za with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l7KZp-0001TR-AG for pgsql-admin@lists.postgresql.org; Wed, 03 Feb 2021 18:00:21 +0200 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Alex Balashov Mime-Version: 1.0 (1.0) Subject: Re: pg_wal keeps growing Date: Wed, 3 Feb 2021 11:00:17 -0500 Message-Id: References: In-Reply-To: To: pgsql-admin@lists.postgresql.org X-Mailer: iPad Mail (18C66) Sender: sasha@isando.evaristesys.co.za List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Are you sure you don=E2=80=99t have a replication slot with no replication c= onsumer connected to it? Replication slots cause WALs to accumulate until someone connects to the slo= t and downloads them. =E2=80=94 Sent from my iPad > On Feb 3, 2021, at 10:53 AM, Yambu wrote: >=20 > =EF=BB=BF > Hello >=20 > My pg_wal directory keeps growing in size. Im using Pg v10 >=20 > Currently its at 53GB in size. >=20 > Below are my settings >=20 > select name,setting,unit from pg_settings where name ilike '%wal%'; > name | setting | unit > ------------------------------+-----------+------ > max_wal_senders | 10 | > max_wal_size | 1024 | MB > min_wal_size | 80 | MB > wal_block_size | 8192 | > wal_buffers | 2048 | 8kB > wal_compression | off | > wal_consistency_checking | | > wal_keep_segments | 0 | > wal_level | replica | > wal_log_hints | off | > wal_receiver_status_interval | 10 | s > wal_receiver_timeout | 60000 | ms > wal_retrieve_retry_interval | 5000 | ms > wal_segment_size | 2048 | 8kB > wal_sender_timeout | 60000 | ms > wal_sync_method | fdatasync | > wal_writer_delay | 200 | ms > wal_writer_flush_after | 128 | 8kB > (18 rows)