pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ram Pratap Maurya <ram.maurya@lavainternational.in>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Huge archive log generate in Postgresql-13
Date: Tue, 19 Apr 2022 10:20:51 -0700
Message-ID: <691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com> (raw)
In-Reply-To: <KL1PR0601MB44331424CA913E84AAEB9087F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com>
References: <KL1PR0601MB4433D6A72DE1CA03D9D6F75DF0F39@KL1PR0601MB4433.apcprd06.prod.outlook.com>
	<5e94410e-ae0e-db88-24cc-58805a9f73d0@aklaver.com>
	<KL1PR0601MB443325E8306395D5428BAC04F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com>
	<KL1PR0601MB44331424CA913E84AAEB9087F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com>

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 <adrian.klaver@aklaver.com>; pgsql-general@postgresql.org
> Cc: Manu Saxena <manu.saxena@lavainternational.in>
> 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 
> <mailto:adrian.klaver@aklaver.com>]
> 
> Sent: 18 April 2022 21:30
> 
> To: Ram Pratap Maurya <ram.maurya@lavainternational.in 
> <mailto:ram.maurya@lavainternational.in>>; pgsql-general@postgresql.org 
> <mailto:pgsql-general@postgresql.org>
> 
> Cc: Manu Saxena <manu.saxena@lavainternational.in 
> <mailto:manu.saxena@lavainternational.in>>
> 
> 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 <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (13+ messages)  latest in thread

Message-ID: <691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com>
Permalink:  ../691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com/
Also on:    postgresql.org/message-id/691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ram.maurya@lavainternational.in
  Subject: Re: Huge archive log generate in Postgresql-13
  In-Reply-To: <691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com>
  References: <KL1PR0601MB4433D6A72DE1CA03D9D6F75DF0F39@KL1PR0601MB4433.apcprd06.prod.outlook.com> <5e94410e-ae0e-db88-24cc-58805a9f73d0@aklaver.com> <KL1PR0601MB443325E8306395D5428BAC04F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com> <KL1PR0601MB44331424CA913E84AAEB9087F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com> <691f97fa-df1b-be3f-76fe-31a9390ba0b3@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox