Re: Cleaning up nbtree after logical decoding on standby work - Mailing list pgsql-hackers

From Drouvot, Bertrand
Subject Re: Cleaning up nbtree after logical decoding on standby work
Date
Msg-id 20dd251d-e622-120d-4788-202a6049d931@gmail.com
Whole thread Raw
In response to Re: Cleaning up nbtree after logical decoding on standby work  (Peter Geoghegan <pg@bowt.ie>)
List 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@alvh.no-ip.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



pgsql-hackers by date:

Previous
From: "Yu Shi (Fujitsu)"
Date:
Subject: RE: Support logical replication of DDLs
Next
From: "Drouvot, Bertrand"
Date:
Subject: Re: BF animal dikkop reported a failure in 035_standby_logical_decoding