pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Kevin Hale Boyes <kcboyes@gmail.com>
Cc: Kartyshov Ivan <i.kartyshov@postgrespro.ru>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: hlinnaka@iki.fi
Cc: alvherre@alvh.no-ip.org
Cc: pashkin.elfe@gmail.com
Cc: bharath.rupireddyforpostgres@gmail.com
Cc: euler@eulerto.com
Cc: thomas.munro@gmail.com
Cc: peter@eisentraut.org
Cc: amit.kapila16@gmail.com
Cc: dilipbalaut@gmail.com
Cc: smithpb2250@gmail.com
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
Date: Tue, 17 Sep 2024 12:00:00 +0300
Message-ID: <88a394be-ebfe-0a3d-f2ac-15f9ce41960d@gmail.com> (raw)
In-Reply-To: <CAPpHfdsqpXDw2gFCWBsTYcGra4quV6eHT2=aiqTc9TYe9Ootiw@mail.gmail.com>
References: <ca85a3c56e3c26cc29d1df14021845f6@postgrespro.ru>
	<20240620.173045.1163445432733259320.horikyota.ntt@gmail.com>
	<8d0286f9f0c2f9fc29794dda6b5f4600@postgrespro.ru>
	<CAPpHfdvwMn21n-zWecvr5gEzFy7rmszwbOTekjTE4taCe9frBw@mail.gmail.com>
	<CAPpHfds1QW-zZ_Hs4dkvX2pji=Ms1VE2C=oGFRu2xFbDA_-MgA@mail.gmail.com>
	<CAPpHfdt8rs0=NC3aHgcj_ZXGKEexZtk=Y8ytK188Ta3NWD5+Pg@mail.gmail.com>
	<CADAecHWKpaPuPGXAMOH=wmhTpydHWGPOk9KWX97UYhp5GdqCWw@mail.gmail.com>
	<CAPpHfdu5QN+ZGACS+7foxmr8_nekgA2PA+-G3BuOUrdBLBFb6Q@mail.gmail.com>
	<CAPpHfdtRZ+3use8n3Vc9RFVitXj59koTKuYLM4+3M0_En7BY9g@mail.gmail.com>
	<CAPpHfdsyZFEu-M5YLeX68cBG_N4j7R4TM6ROpP6wnNB_oDNKZA@mail.gmail.com>
	<CAPpHfdsgKwR5ifuBTdB4sOA1=h28=0tUHjaWRWi0C_VZR5PMdg@mail.gmail.com>
	<1d7b08f2-64a2-77fb-c666-c9a74c68eeda@gmail.com>
	<CAPpHfdv=5X5k=gRu0Q2cJ7pyWa0fqdnDFCPHQqUcrp8eypQWRg@mail.gmail.com>
	<4a7b82d8-17ad-83ae-4aa1-563c3c64c4c3@gmail.com>
	<CAPpHfdsqpXDw2gFCWBsTYcGra4quV6eHT2=aiqTc9TYe9Ootiw@mail.gmail.com>

17.09.2024 10:47, Alexander Korotkov wrote:
> Yes, now I did reproduce.  I got that the problem could be that insert
> LSN is not yet written at primary, thus wait_for_catchup doesn't wait
> for it.  I've workarounded that using pg_switch_wal().  The revised
> patchset is attached.

Thank you for the revised patch!

The improved test works reliably for me (100 out of 100 runs passed),

Best regards,
Alexander





view thread (216+ messages)

Message-ID: <88a394be-ebfe-0a3d-f2ac-15f9ce41960d@gmail.com>
Permalink:  ../88a394be-ebfe-0a3d-f2ac-15f9ce41960d@gmail.com/
Also on:    postgresql.org/message-id/88a394be-ebfe-0a3d-f2ac-15f9ce41960d@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: exclusion@gmail.com, aekorotkov@gmail.com, kcboyes@gmail.com, i.kartyshov@postgrespro.ru, horikyota.ntt@gmail.com, hlinnaka@iki.fi, alvherre@alvh.no-ip.org, pashkin.elfe@gmail.com, bharath.rupireddyforpostgres@gmail.com, euler@eulerto.com, thomas.munro@gmail.com, peter@eisentraut.org, amit.kapila16@gmail.com, dilipbalaut@gmail.com, smithpb2250@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
  In-Reply-To: <88a394be-ebfe-0a3d-f2ac-15f9ce41960d@gmail.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