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 1jH7aA-0007W7-26 for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2020 15:04:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jH7a8-0007cV-GW for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2020 15:04: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 1jH7a8-0007cO-3K for pgsql-bugs@lists.postgresql.org; Wed, 25 Mar 2020 15:04: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 1jH7a5-0008J7-48 for pgsql-bugs@lists.postgresql.org; Wed, 25 Mar 2020 15:04: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-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: 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=+w+8QufwnrZysYFazJK7nADikDICELh5+iF/ZkEoh1Q=; b=oGDG9noJTpUqHDMGurFgYwr2BZ Is46vU2TI+QdocNWrV7XybmjQiMeutZsnTzyYHtkCSqIwuNSD84FoGVIvSxe4Kn1VHAEaPgb/AVce hBHh9Av/tvOiy/NT5qzdxRv4Q+5XmcS9JCpxiVlPdbocYVYJM+bRjypzBcoA2V/VWemE=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1jH7a2-0008Q8-SP; Wed, 25 Mar 2020 16:04:30 +0100 Date: Wed, 25 Mar 2020 16:04:30 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Fan Liu Cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #16317: max_wal_size does not remove WAL files, cause "no space left" Message-ID: <20200325150430.GA21159@depesz.com> Reply-To: depesz@depesz.com References: <16317-b7ad5f27ad90aceb@postgresql.org> <20200325113830.GA25387@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 12:26:22PM +0000, Fan Liu wrote: > >>postgres=# ps uwwxf | grep -C3 archive > >>postgres-# \q > >>ss7-db-pg-1:/ # ps uwwxf | grep -C3 archive I asked for this ps/grep from shell of postgres. not from psql as postgres, and not from root shell. But it's not really important. can you show me: select pg_walfile_name( pg_current_wal_lsn()); and then, as postgres: cd /var/lib/postgresql/data/pgdata/wal (or wherever wal is), and do: ls -l and show us the output (possiblky using some paste site). Best regards, depesz