From: Julien Rouhaud <rjuju123@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Isn't wait_for_catchup slightly broken?
Date: Tue, 11 Jan 2022 14:25:02 +0800
Message-ID: <20220111062502.obh4gegzcaova5dk@jrouhaud> (raw)
In-Reply-To: <2368336.1641843098@sss.pgh.pa.us>
References: <2368336.1641843098@sss.pgh.pa.us>
On Mon, Jan 10, 2022 at 02:31:38PM -0500, Tom Lane wrote:
>
> So I think we need to fix it to capture the target WAL position
> at the start, as I've done in the attached patch.
+1, it looks sensible to me.
> In principle
> this might make things a bit slower because of the extra
> transaction required, but I don't notice any above-the-noise
> difference on my own workstation.
I'm wondering if the environments where this extra transaction could make
a noticeable difference are also environments where doing that extra
transaction can save some iteration(s), which would be at least as costly.
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-hackers@postgresql.org
Cc: rjuju123@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Isn't wait_for_catchup slightly broken?
In-Reply-To: <20220111062502.obh4gegzcaova5dk@jrouhaud>
References: <2368336.1641843098@sss.pgh.pa.us> <20220111062502.obh4gegzcaova5dk@jrouhaud>
* 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