RE: Huge archive log generate in Postgresql-13

From: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>
To: "holger(at)jakobs(dot)com" <holger(at)jakobs(dot)com>
Cc: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>, "cliveswan(at)gmail(dot)com" <cliveswan(at)gmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: RE: Huge archive log generate in Postgresql-13
Date: 2022-04-21 05:54:29
Message-ID: KL1PR0601MB44330ACB52188F35E6D6926EF0F49@KL1PR0601MB4433.apcprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Dear Holger,

we have one slave server and one DR server.
salve server working on streaming replication and DR server replicate with Archive log.
if we change "wal_level " parameter value to “replica” there any impact in existing server (Salve and DR) replication?
Please suggest .

Regards,
Ram Pratap.

From: Ram Pratap Maurya
Sent: 21 April 2022 09:49
To: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>
Subject: FW: Huge archive log generate in Postgresql-13

---------- Forwarded message ---------
From: Clive Swan <cliveswan(at)gmail(dot)com<mailto:cliveswan(at)gmail(dot)com>>
Date: Tue, Apr 19, 2022 at 12:45 AM
Subject: Re: Huge archive log generate in Postgresql-13
To: Holger Jakobs <holger(at)jakobs(dot)com<mailto:holger(at)jakobs(dot)com>>, pgsql-admin(at)lists(dot)postgresql(dot)org<mailto:pgsql-admin(at)lists(dot)postgresql(dot)org> <pgsql-admin(at)lists(dot)postgresql(dot)org<mailto:pgsql-admin(at)lists(dot)postgresql(dot)org>>

Grenting,
Is your logging set to high verbosity??

Usually use high verbosity for debugging, then change to low verbosity.

Clive

________________________________
From: Holger Jakobs <holger(at)jakobs(dot)com<mailto:holger(at)jakobs(dot)com>>
Sent: Monday, 18 April 2022, 13:10
To: pgsql-admin(at)lists(dot)postgresql(dot)org<mailto:pgsql-admin(at)lists(dot)postgresql(dot)org> <pgsql-admin(at)lists(dot)postgresql(dot)org<mailto:pgsql-admin(at)lists(dot)postgresql(dot)org>>
Subject: Re: Huge archive log generate in Postgresql-13

wal_level = hot_standby # minimal, replica, or logical
# (change requires restart)

Set wal_level to one of the allowed values. It's possible that your value gets interpreted as logical, thus creating larger wal entries.
Am 18.04.22 um 13:47 schrieb Ram Pratap Maurya:
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.

--

Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Adrian Klaver 2022-04-21 16:04:55 Re: Huge archive log generate in Postgresql-13
Previous Message Godfrin, Philippe E 2022-04-20 17:25:50 pg_stat_statements with large queries

Browse pgsql-general by date

  From Date Subject
Next Message Thomas, Richard 2022-04-21 09:13:52 RE: PostgreSQL 10.20 crashes / Antivirus
Previous Message raf 2022-04-21 05:30:39 Re: Are stored procedures/triggers common in your industry