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 1lMDfj-0008U4-Pw for pgsql-general@arkaria.postgresql.org; Tue, 16 Mar 2021 17:39:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMDfi-0006vm-No for pgsql-general@arkaria.postgresql.org; Tue, 16 Mar 2021 17:39:58 +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 1lMDfi-0006vf-Fn for pgsql-general@lists.postgresql.org; Tue, 16 Mar 2021 17:39:58 +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 1lMDfg-0003ge-K7 for pgsql-general@lists.postgresql.org; Tue, 16 Mar 2021 17:39:57 +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 12GHdsGa3349576; Tue, 16 Mar 2021 13:39:54 -0400 From: Tom Lane To: Andrew Anderson cc: Laurenz Albe , "pgsql-generallists.postgresql.org" Subject: Re: WAL-files is not removing authomaticaly In-reply-to: References: <7eee13c535a2f1de6e8dece0791531f3dc7f2c0e.camel@cybertec.at> <8824049ee9e1f6476cf65ebb156c71fb2b44fa87.camel@cybertec.at> <033b46e968f6968cb4e3591c2111aaf20ec4b067.camel@cybertec.at> <2e2b5960cc30345c328206ea374f2faab481a644.camel@cybertec.at> <3253337.1615909458@sss.pgh.pa.us> Comments: In-reply-to Andrew Anderson message dated "Tue, 16 Mar 2021 18:50:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3349574.1615916394.1@sss.pgh.pa.us> Date: Tue, 16 Mar 2021 13:39:54 -0400 Message-ID: <3349575.1615916394@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Anderson writes: >> What's using it? > As I think, streaming replication is using this slot. Does anybody know how > to fix it ? Unless you need another replica that's downstream of the standby, you should not be maintaining a replication slot on the standby. There may be a way to have a slot that's not actually holding back WAL cleanup while doing nothing, but I don't know what it is. regards, tom lane