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.92) (envelope-from ) id 1jH4Mp-0001eM-4U for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2020 11:38:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jH4Mm-0000Ax-Ra for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2020 11:38:36 +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 1jH4Mm-0000Aq-52 for pgsql-bugs@lists.postgresql.org; Wed, 25 Mar 2020 11:38:36 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jH4Mj-0006Uw-HH for pgsql-bugs@lists.postgresql.org; Wed, 25 Mar 2020 11:38:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Reply-To:Message-ID:Subject:To:Sender:From:Date:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iTRDZPfp/4RcFfFvy6i0TpU8tPaSe7rOzbnG5QJIx8A=; b=B/8Dqo7sKm5mqmn8eFtxqfKWFR oerhQgKDHO0IW/j9UBPzoDzMFnzagIAj4TltgylcNF1+1Vyk1NEClSIFeIE0zJUeHTeRggeso+xP6 h/P8HNK71wEqA7JlbEGHwK8ODa2cHMsWjpyvX/NOqq1raaZ5FtX4b8WU31TUPvmpzi2g=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1jH4Mg-0000Y3-Ai; Wed, 25 Mar 2020 12:38:30 +0100 Date: Wed, 25 Mar 2020 12:38:30 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: fan.liu@ericsson.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16317: max_wal_size does not remove WAL files, cause "no space left" Message-ID: <20200325113830.GA25387@depesz.com> Reply-To: depesz@depesz.com References: <16317-b7ad5f27ad90aceb@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16317-b7ad5f27ad90aceb@postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 25, 2020 at 11:11:11AM +0000, PG Bug reporting form wrote: > eric-adp-ss7-db-pg-0:/var/lib/postgresql/data/pgdata # du -h -d1 > 3.9G ./pg_wal > 600K ./global > ….. > 3.9G . > > postgres=# SHOW max_wal_size; > max_wal_size > -------------- > 1GB > (1 row) Please show us: show archive_mode; show archive_command; select * from pg_stat_replication; select * from pg_replication_slots; select pg_current_wal_lsn(); and, from postgres account in shell: ps uwwxf | grep -C3 archive Best regards, depesz