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 1ngrXA-0002z1-9p for pgsql-general@arkaria.postgresql.org; Tue, 19 Apr 2022 17:21:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngrX8-00065X-HP for pgsql-general@arkaria.postgresql.org; Tue, 19 Apr 2022 17:20:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngrX8-00063n-6B for pgsql-general@lists.postgresql.org; Tue, 19 Apr 2022 17:20:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngrX5-00009Y-1K for pgsql-general@postgresql.org; Tue, 19 Apr 2022 17:20:57 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 001885C00E0; Tue, 19 Apr 2022 13:20:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 19 Apr 2022 13:20:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1650388852; x= 1650475252; bh=VwKk47/MR9+pZWqCJ3vQkPudCTROKPfMv4xB+/SS3tk=; b=M ZH2lDaZOmSfKNKkbJiG4wIRJWVqkokjLNkUGkhqvJPrIRi5kqp8Z+H7Q88NxJXrI Z2nGqzbwUg2SOzdX4mEkCqn6PdgMYLNZ6Wp5MGYIGApqlt5CMkre+/DnSSzt8lB6 XJkA2slXMfLTnLdYgDp81tm2+0Y4ljAsxC/WSIunaWLVEA3Q3hXULj7EzgRYu2kq hPNvImpOfdBaPsKTkbXTyNUHIPP0/1bSYYtXHYdjqeytWGtQg8Djyebe0Fcq8beF fQcoH6ad6UjO0mLXi+O0TJ0/9XLG7cJwn1fu+y0adFoBQMcE3Gtu0wj9mP7gPhTS 4p2Lvdcp3mEpOzVfWs1Qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1650388852; x=1650475252; bh=VwKk47/MR9+pZWqCJ3vQkPudCTRO KPfMv4xB+/SS3tk=; b=XfOSjhahmYoAsXCTPuG1GpQQM5IaVxpQFeK6r/hp9zG7 fmUgje4jLHPT31dyLe/1JRr5rDq13nQw+I7cykm883pWRflUHLZn3Cuhhz9pcjrE PDbgMKq8lg7OxS5xgMjz0L0ukLPjMnuzoD2IVmqRLzosAEKLaBQ+ny0TDXJfI473 DWWhyvvnHoi6KmQg6bYUQ4JwnG3i5dWh7D0dcCzMnrZ/M9u2f3pMoKboHpSxkWLA RFFRhT5zK5WhTaQ6Iix14Co3QVKwXQd79WVMwi9Lj/NQiKidoJNmDUI6dh70TxWs SMLv107vr8oSzImOcGsDGWHiXW9GpG0YMKUc78tRkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtfedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepudfgueelgeevfffhgeeljeehhfettdegieelgefg heefffefveegjedtueetffdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Apr 2022 13:20:52 -0400 (EDT) Message-ID: <691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com> Date: Tue, 19 Apr 2022 10:20:51 -0700 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: Ram Pratap Maurya , "pgsql-general@postgresql.org" References: <5e94410e-ae0e-db88-24cc-58805a9f73d0@aklaver.com> From: Adrian Klaver 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 On 4/18/22 21:41, Ram Pratap Maurya wrote: > Dear Adrian, > > If we set  parameter *"PG-WAL  = replica"*  in PG13 conf file , there is > any issue  in replication through PG_WAL  and pg_log_archive log. > In versions of Postgres from 9.6+ your setting of hot_standby is mapped to the replica setting so it is really not a change. In other words the hot_standby setting = replica setting as of 9.6. I made the suggestion to change just so the conf setting matches the choices in current documentation. Less confusion for someone looking through the postgresql.conf file and then looking up the values in the documentation. As to your replication is that binary replication or logical replication? Also you have not said where you are measuring the size growth in WAL files? > > Regards, > > Ram Pratap. > > -----Original Message----- > From: Ram Pratap Maurya > Sent: 19 April 2022 09:00 > To: Adrian Klaver ; pgsql-general@postgresql.org > Cc: Manu Saxena > Subject: RE: Huge archive log generate in Postgresql-13 > > Dear Adrian, > > We have two replica system one is Slave and other id DR server . > > Salve server replicate from PG_WAL and DR system replicate from > pg_log_archive. > > Can you please suggest what changes need to required in PG13 conf file. > > Regards, > > Ram Pratap. > > -----Original Message----- > > From: Adrian Klaver [mailto:adrian.klaver@aklaver.com > ] > > Sent: 18 April 2022 21:30 > > To: Ram Pratap Maurya >; pgsql-general@postgresql.org > > > Cc: Manu Saxena > > > Subject: Re: Huge archive log generate in Postgresql-13 > > On 4/18/22 04: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. > > Where are you measuring this in the WAL directory or the archive directory? > > Do you have replication set up from this server and if so what type? > > FYI, the wal_level setting of hot_standby is deprecated and maps to > replica since version 9.6. At some point you might want to change to > match current documentation. > > > > > > 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. > > > > > -- > > Adrian Klaver > > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com