From: | "osumi(dot)takamichi(at)fujitsu(dot)com" <osumi(dot)takamichi(at)fujitsu(dot)com> |
---|---|
To: | 'Ajin Cherian' <itsajin(at)gmail(dot)com> |
Cc: | Japin Li <japinli(at)hotmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Petr Jelinek <petr(dot)jelinek(at)enterprisedb(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, "tanghy(dot)fnst(at)fujitsu(dot)com" <tanghy(dot)fnst(at)fujitsu(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | RE: Truncate in synchronous logical replication failed |
Date: | 2021-04-20 03:30:34 |
Message-ID: | OSBPR01MB48880D065ECAF8BC1C2A54D6ED489@OSBPR01MB4888.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tuesday, April 20, 2021 10:53 AM Ajin Cherian <itsajin(at)gmail(dot)com> wrote:
> On Sat, Apr 17, 2021 at 2:04 PM osumi(dot)takamichi(at)fujitsu(dot)com
> <mailto:osumi(dot)takamichi(at)fujitsu(dot)com> <osumi(dot)takamichi(at)fujitsu(dot)com
> <mailto:osumi(dot)takamichi(at)fujitsu(dot)com> > wrote:
>
> No problem. Thank you for updating the patch.
> I've conducted some cosmetic changes. Could you please check
> this ?
> That's already applied by pgindent.
>
> I executed RT for this and made no failure.
> Just in case, I executed 010_truncate.pl <http://010_truncate.pl>
> test 100 times in a tight loop,
> which also didn't fail.
>
> I reviewed the patch, ran make check, no issues. One minor comment:
>
> Could you add the comment similar to RelationGetIndexAttrBitmap() on why
> the redo, it's not very obvious to someone reading the code, why we are
> refetching the index list here.
>
> + /* Check if we need to redo */
>
> + newindexoidlist = RelationGetIndexList(relation);
Yeah, makes sense. Fixed.
Its indents seem a bit weird but came from pgindent.
Thank you for your review !
Best Regards,
Takamichi Osumi
Attachment | Content-Type | Size |
---|---|---|
truncate_in_synchronous_logical_replication_v04.patch | application/octet-stream | 5.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2021-04-20 03:31:32 | Re: 2 questions about volatile attribute of pg_proc. |
Previous Message | wangw.fnst@fujitsu.com | 2021-04-20 03:28:38 | An omission of automatic completion in tab-complete.c |