RE: Huge archive log generate in Postgresql-13

From: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: RE: Huge archive log generate in Postgresql-13
Date: 2022-04-19 04:41:44
Message-ID: KL1PR0601MB44331424CA913E84AAEB9087F0F29@KL1PR0601MB4433.apcprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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.

https://www.postgresql.org/docs/13/runtime-config-wal.html

Regards,

Ram Pratap.

-----Original Message-----
From: Ram Pratap Maurya
Sent: 19 April 2022 09:00
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>; pgsql-general(at)postgresql(dot)org
Cc: Manu Saxena <manu(dot)saxena(at)lavainternational(dot)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(dot)klaver(at)aklaver(dot)com]

Sent: 18 April 2022 21:30

To: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in<mailto:ram(dot)maurya(at)lavainternational(dot)in>>; pgsql-general(at)postgresql(dot)org<mailto:pgsql-general(at)postgresql(dot)org>

Cc: Manu Saxena <manu(dot)saxena(at)lavainternational(dot)in<mailto:manu(dot)saxena(at)lavainternational(dot)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(dot)klaver(at)aklaver(dot)com<mailto:adrian(dot)klaver(at)aklaver(dot)com>

Attachment Content-Type Size
postgresql.conf application/octet-stream 27.6 KB

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kristjan Mustkivi 2022-04-19 13:01:07 Pgbouncer, docker and systemd
Previous Message Ram Pratap Maurya 2022-04-19 03:29:49 RE: Huge archive log generate in Postgresql-13

Browse pgsql-general by date

  From Date Subject
Next Message bhargav kamineni 2022-04-19 05:44:40 oldest xmin is far in the past :: BUT xmin is not available in system
Previous Message Tom Lane 2022-04-19 04:11:45 Re: No psql md5 auth, psql 14.1 to PG 11