Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6Vlg-001Bch-5x for pgsql-general@arkaria.postgresql.org; Fri, 24 Nov 2023 12:58:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r6Vle-00B3f8-5a for pgsql-general@arkaria.postgresql.org; Fri, 24 Nov 2023 12:58:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6Vld-00B3f0-Hf for pgsql-general@lists.postgresql.org; Fri, 24 Nov 2023 12:58:45 +0000 Received: from ssl.schlittermann.de ([46.38.236.101]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6Vlb-0078rF-0e for pgsql-general@lists.postgresql.org; Fri, 24 Nov 2023 12:58:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=schlittermann.de; s=dd201504; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Content-Description:Content-ID:Resent-Cc:Resent-To; bh=BKgwLlt5/012RpVFYRGYOlNqnITP0Cf1Ug5SSA4r/4U=; b=HqVFgwbV/BxcjsZpgfKhEUMNbL SZy7RIkhq6pHtrlOje1yRk/ufUkwQU7YJeohVTj0S/eoo+l7uErt0X1HJyHhVZC73zJAXA2WWwp// w34Aj/RyPa0EW8l6rw5mZriypzRCAU7VOhRnIhw2CvJnst8fjsgr0RSj14HaXXhMCs58=; Received: by ssl.schlittermann.de with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.x) (envelope-from ) id 1r6VlZ-00GyIi-04; Fri, 24 Nov 2023 13:58:41 +0100 Message-ID: <90f8b99c-a3b0-c50c-db91-cab6ea3386d0@a-kretschmer.de> Date: Fri, 24 Nov 2023 13:58:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: replication primary writting infinite number of WAL files Content-Language: en-US To: Les Cc: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am 24.11.23 um 13:52 schrieb Les: > > > Andreas Kretschmer wrote (2023. nov. 24., P, > 13:22): > > > > Am 24.11.23 um 12:39 schrieb Les: > > > > Hello, > > > > please check the database log, a VACUUM can also lead to massive wal > generation. Can you find other related messages? by the way, the > picture > is hard to read, please post text instead of pictures. > > > First I was also thinking about vacuum.  But removing a replication > slot should have no effect on vacuum on the primary (AFAIK). Please > correct me if I'm wrong. > yeah, depends. there are 2 processes: * 1 process generating the wal's, maybe a VACUUM * an inactive slot holding the wals For instance, if a standby not reachable the wal's will accumulated within the slot, till the standby is reachable again. Andreas -- Andreas Kretschmer - currently still (garden leave) Technical Account Manager (TAM) www.enterprisedb.com