Re: Cleaning up nbtree after logical decoding on standby work

From: "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Cleaning up nbtree after logical decoding on standby work
Date: 2023-05-29 08:19:00
Message-ID: 20dd251d-e622-120d-4788-202a6049d931@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 5/26/23 7:28 PM, Peter Geoghegan wrote:
> On Fri, May 26, 2023 at 1:56 AM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>> I suppose you're not thinking of applying this to current master, but
>> instead just leave it for when pg17 opens, right? I mean, clearly it
>> seems far too invasive to put it in after beta1.
>
> I was planning on targeting 16 with this. Although I only posted a
> patch recently, I complained about the problems in this area shortly
> after the code first went in. It's fairly obvious to me that the
> changes made to nbtree went quite a bit further than they needed to.

Thanks Peter for the call out and the follow up on this!

As you already mentioned in this thread, all the changes I've done in
61b313e47e were purely "mechanical" as the main goal was to move forward the
logical decoding on standby thread and..

> Admittedly that's partly because I'm an expert on this particular
> code.
>

it was not obvious to me (as I'm not an expert as you are in this area) that
many of those changes were "excessive".

> Now, to be fair to Bertrand, it *looks* more complicated than it
> really is, in large part due to the obscure case where VACUUM finishes
> an interrupted page split (during page deletion), which itself goes on
> to cause a page split one level up.

Thanks ;-)

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 Drouvot, Bertrand 2023-05-29 09:22:01 Re: BF animal dikkop reported a failure in 035_standby_logical_decoding
Previous Message Yu Shi (Fujitsu) 2023-05-29 06:15:28 RE: Support logical replication of DDLs