Re: Replication & recovery_min_apply_delay

From: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
To: Michael Paquier <michael(at)paquier(dot)xyz>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Replication & recovery_min_apply_delay
Date: 2019-07-31 13:46:37
Message-ID: ca106468-24c6-9f72-b37d-7d5d43f224ed@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08.07.2019 11:05, Michael Paquier wrote:
> On Mon, Jul 08, 2019 at 07:56:25PM +1200, Thomas Munro wrote:
>> On Thu, Jan 31, 2019 at 3:34 AM Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>>> On 2019-Jan-30, Konstantin Knizhnik wrote:
>>>> I wonder if it can be considered as acceptable solution of the problem or
>>>> there can be some better approach?
>>> I didn't find one.
>> It sounds like you are in agreement that there is a problem and this
>> is the best solution. I didn't look at these patches, I'm just asking
>> with my Commitfest manager hat on: did I understand correctly, does
>> this need a TAP test, possibly the one Alvaro posted, and if so, could
>> we please have a fresh patch that includes the test, so we can see it
>> passing the test in CI?
> Please note that I have not looked at that stuff in details, but I
> find the patch proposed kind of ugly with the scan of the last segment
> using a WAL reader to find out what is the last LSN and react on
> that.. This does not feel right.
> --
> Michael

I am sorry for delay with answer.
Looks like I have not noticed your reply:(
Can you explain me please why it is not correct to iterate through WAL
using WAL reader to get last LSN?
From my point of view it may be not so efficient way, but it should
return correct value, shouldn't it?
Can you suggest some better way to calculate last LSN?

--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2019-07-31 14:10:10 Re: pgbench - implement strict TPC-B benchmark
Previous Message Sehrope Sarkuni 2019-07-31 13:43:00 Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS)