From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fix memory counter update in reorderbuffer |
Date: | 2024-08-23 10:13:22 |
Message-ID: | CAD21AoBjW4L8rKggt9cLACj+jt3n9gVqTdOk_dt88BCnRBmSDA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 20, 2024 at 9:29 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Tue, Aug 20, 2024 at 5:55 PM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> >
> > On Fri, Aug 16, 2024 at 12:22 AM Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> wrote:
> > >
> >
> > Thank you for testing the patch!
> >
> > I'm slightly hesitant to add a test under src/test/subscription since
> > it's a bug in ReorderBuffer and not specific to logical replication.
> > If we reasonably cannot add a test under contrib/test_decoding, I'm
> > okay with adding it under src/test/subscription.
> >
>
> Sounds like a reasonable approach.
I've managed to reproduce this issue without logical replication based
on the test shared by Shlok Kyal.
>
> > I've attached the updated patch with the commit message (but without a
> > test case for now).
> >
>
> The patch LGTM except for one minor comment.
>
> + /* All changes must be returned */
> + Assert(txn->size == 0);
>
> Isn't it better to say: "All changes must be deallocated." in the above comment?
Agreed.
I've updated the updated patch with regression tests.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
Attachment | Content-Type | Size |
---|---|---|
v4-0001-Fix-memory-counter-update-in-ReorderBuffer.patch | application/octet-stream | 6.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrei Lepikhov | 2024-08-23 10:23:49 | Re: POC, WIP: OR-clause support for indexes |
Previous Message | Rafia Sabih | 2024-08-23 10:02:37 | Re: pgstattuple: fix free space calculation |