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 1ngPnI-0004pV-MO for pgsql-general@arkaria.postgresql.org; Mon, 18 Apr 2022 11:43:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngPnG-00071F-Ah for pgsql-general@arkaria.postgresql.org; Mon, 18 Apr 2022 11:43:46 +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 1ngPnF-000716-UP for pgsql-general@lists.postgresql.org; Mon, 18 Apr 2022 11:43:46 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ngPnC-0003xg-Im for pgsql-general@lists.postgresql.org; Mon, 18 Apr 2022 11:43:44 +0000 Received: by mail-qk1-x730.google.com with SMTP id s4so10993262qkh.0 for ; Mon, 18 Apr 2022 04:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=up2ASr1sQ9YSfsh1Xq30xsWQ7fyQssGRnf//tWvdtcg=; b=qB0KaBWTfKPmXNHfXGWrZS01PFzVYb9JNNuChJrkovfJrtC6ystRPqSIxrx5tGOx2j 4yfihir4Uly8kyVTTjFzCOZ/WVYoKv8knA21oCJnagY2kUbmD4XsVqlsvyG+vwEq5jax YRB0LzBekQVjb2bpE58FhBc7mgHbD4u72bJ9GC1uzOnEHqQRcSSoML2hVkUXvKlgcKV6 mL56w0eDeuTfZxSMcqTZVNeNmksWhAF4AtZqneYMpXQc/2G++TMnwossE5/T0xitd5l2 LJgyQ0tOf2ZQgDNA/d0GEZWw76VXwXqGz2y+Bo5E60OzdMifMz3FN76uUntTH+BFGGRd KU8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=up2ASr1sQ9YSfsh1Xq30xsWQ7fyQssGRnf//tWvdtcg=; b=5sSpjhUS8lLZL+MYbXgFZfWH1vIy8p2YM2aymwmZbgPiJdSpBlFrwSTi/fhJ7O6/b8 WMkWByS61znnTPKEd+9Kcv4WyPvzfjH34LXEujXvcmvworV125zFOdf0D4EwIdBsbnTD i4kDXFbXAlWnj2TlDwhHNmvjT4x6+CETLjsNVQWDhzWjtMatEzyFZQavP6MfPm17ZTzB y4BYGh6hIv390Nm1FlHQs36UcyZ088qs0P7UQNFWTohN5sIMa1lHJ+ELIRA24qXxrCMW hlGPwVpNNw/+VC2paqfbuMZlXlbB4GFTXAMslixHPuGqKJgWlrPqSTBgURdwWWeCAL3W R0BA== X-Gm-Message-State: AOAM533nTLs1EbtkGsuRWXxxbGgIl5uPxx7jai2aiMuKRlpLurveEmsq Qn/apcli/GDXYFaD96v53A16U2rjeXc= X-Google-Smtp-Source: ABdhPJwjeKB3C/YBuPvPGHwCDmWZC+b0WUrAevL2xTE7C042vo8/QC1M5nYlkdY58DCylG2xiOWLrw== X-Received: by 2002:a37:a4b:0:b0:69e:7b3e:56c1 with SMTP id 72-20020a370a4b000000b0069e7b3e56c1mr5101175qkk.497.1650282221164; Mon, 18 Apr 2022 04:43:41 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-19-93.nwrknj.east.verizon.net. [72.79.19.93]) by smtp.gmail.com with ESMTPSA id v14-20020a05622a144e00b002f1f32f86a6sm4348286qtx.5.2022.04.18.04.43.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Apr 2022 04:43:40 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------HUU06GOtIqqhK1RyRWvZp9ca" Message-ID: <25eda70b-62ad-45aa-a239-b2f443d05b4e@gmail.com> Date: Mon, 18 Apr 2022 07:43:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Huge archive log generate in Postgresql-13 Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Mladen Gogala In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------HUU06GOtIqqhK1RyRWvZp9ca Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/18/22 07:34, Ram Pratap Maurya wrote: > > Hi Support, > > We have upgraded postgresql DB from version 11 to 13 .  after upgrade > to 13  huge archive log generate in system . > > Before upgrade  per day 120GB to 150 GB log generated but after > upgrade per day approx. 250 to 300 GB log generated. > > Can you please suggest why huge archive log generated after upgrade >  there any configure setting or this is Postgresql-13 behaviour. > > Postgresql-13 Postgresql conf file attached for your references. > > Regards, > > Ram Pratap. > Have you checked what's in those WAL archives? You can do that with pg_waldump. My guess would be that your vacuum is probably more active than in the version 11. However, that's just a guess. You can also turn on WAL compression. Be aware that compression will reduce disk consumption at the expense of CPU consumption. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com --------------HUU06GOtIqqhK1RyRWvZp9ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 4/18/22 07:34, Ram Pratap Maurya wrote:

Hi Support,

 

We have upgraded postgresql DB from version 11 to 13 .  after upgrade to 13  huge archive log generate in system .

Before upgrade  per day 120GB to 150 GB log generated but after upgrade per day approx. 250 to 300 GB log generated.

Can you please suggest why huge archive log generated after upgrade  there any configure setting or this is Postgresql-13 behaviour.

 

Postgresql-13 Postgresql conf file attached for your references.

 

 

Regards,

Ram Pratap.

 

Have you checked what's in those WAL archives? You can do that with pg_waldump. My guess would be that your vacuum is probably more active than in the version 11. However, that's just a guess. You can also turn on WAL compression. Be aware that compression will reduce disk consumption at the expense of CPU consumption.

Regards

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
--------------HUU06GOtIqqhK1RyRWvZp9ca--