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 1rf261-00F1Td-04 for pgsql-admin@arkaria.postgresql.org; Tue, 27 Feb 2024 18:22:29 +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 1rf25z-004wwU-E3 for pgsql-admin@arkaria.postgresql.org; Tue, 27 Feb 2024 18:22:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf25z-004wwM-3W for pgsql-admin@lists.postgresql.org; Tue, 27 Feb 2024 18:22:27 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf25w-001Wvw-Dy for pgsql-admin@lists.postgresql.org; Tue, 27 Feb 2024 18:22:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id DCAC71380094; Tue, 27 Feb 2024 13:22:22 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 27 Feb 2024 13:22:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709058142; x= 1709144542; bh=k+7Iu8CRn8mNq21GBOoJmzblF8oiTpvqH0iXd0jiHik=; b=J pzAqGHTnLie/1nAsJSRT7gi8xf84VCq0WyzG3XcUNMdvVyLDBZEX+Mfb6ZYcfKMT Yys7QJk7YlxicWrhh3YRluFOJo5wAKQoSG5JSIK8OB8afvO/WAgFpesbfovNjRzk SLP57PJT+fuJtcPOWBQwpWinVOGo6XK5aUG/ZxHW8e5lW6lqyENOgE7qFoEFPUyn VL0TSjGNZgksrDrRI0Z/xxC/sxSrlWWwNE4Bthp7cCKN8jqmLBxR53Xu95ILcExM S1VBlEr5TtziOFWMu3r47Xxyx25gGaAweGubTem/cvlFKWCpq10JDJ8525GRmBMV G8e0D68TfV3hTE/3XXmrg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeehgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Feb 2024 13:22:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1709058137; bh=6BICUeFw/75VonMyjRttBuORdKS691t+VuMCSwe3lUE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ipFQOoIxK1Lz7q+3fBNgwxfaUTI7vE3/aDy9Pjf+wzyQI1/loTLeuLP0Fx4/zDN41 3T6uX/0dXUI3RggVZc8wqIIBk/BHf3FB+G3ww7SeWsmfmkEKiVXTYeMWrTTg7R2mom Yd3qjjDPlhr3vVHlG+m9ShvJgPl1h8+8MosxmfO0pjFb0FcxB42MUbvCePvE4VqVHq Of6i8yXOp1L6JLUdOccL/8eftk+4btt1BoYclXXQDVxvi/jQHZaMMV15MIQVQL4plF bpLHJ6U1FZ707W4FyDR7aTS/iqDMpjTD02j4PsUeadtla/StQ1hr4wZKja5MwNjSlC MSVHyqI5sgVaw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id AD99112B0; Tue, 27 Feb 2024 19:22:17 +0100 (CET) Date: Tue, 27 Feb 2024 19:22:17 +0100 From: Alvaro Herrera To: Scott Ribe Cc: Pgsql-admin Subject: Re: explosive WAL growth Message-ID: <202402271822.t4vbqds7mjge@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Feb-27, Scott Ribe wrote: > Something is causing our WAL to grow 160GB/hour *faster* than archiving. (Archiving appears to be working normally.) This started in the past couple of days. > > I am having some trouble finding the cause of this. I am looking at pg_stat_statements, # calls, time, shared blocks written. I am also looking at recent client app deployments. It could be autovacuum processing large tables that haven't been processed in a long time, in emergency mode. This happens if you turn it off and do nothing to substitute it. Some backup tools implement parallel archiving of WAL files, which helps you deal with massive accumulation of them. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/