Re: Synchronizing slots from primary to standby

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Ajin Cherian <itsajin(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Subject: Re: Synchronizing slots from primary to standby
Date: 2024-02-16 06:47:24
Message-ID: Zc8E/KgyvLGQul6/@ip-10-97-1-34.eu-west-3.compute.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Fri, Feb 16, 2024 at 12:32:45AM +0000, Zhijie Hou (Fujitsu) wrote:
> Agreed. Here is new patch set as suggested. I used debug2 in the 040 as it
> could provide more information about communication between primary and standby.
> This also doesn't increase noticeable testing time on my machine for debug
> build.

Same here, and there is no big diff as far the amount of log generated:

Without the patch:

$ du -sh ./src/test/recovery/tmp_check/log/*040*
4.0K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_cascading_standby.log
24K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_publisher.log
16K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_standby1.log
4.0K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_subscriber1.log
12K ./src/test/recovery/tmp_check/log/regress_log_040_standby_failover_slots_sync

With the patch:

$ du -sh ./src/test/recovery/tmp_check/log/*040*
4.0K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_cascading_standby.log
36K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_publisher.log
48K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_standby1.log
4.0K ./src/test/recovery/tmp_check/log/040_standby_failover_slots_sync_subscriber1.log
12K ./src/test/recovery/tmp_check/log/regress_log_040_standby_failover_slots_sync

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2024-02-16 07:22:47 Re: Fix a typo in pg_rotate_logfile
Previous Message Hayato Kuroda (Fujitsu) 2024-02-16 06:41:37 RE: speed up a logical replica setup