Re: Perform streaming logical transactions by background workers and parallel apply

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, "houzj(dot)fnst(at)fujitsu(dot)com" <houzj(dot)fnst(at)fujitsu(dot)com>, "wangw(dot)fnst(at)fujitsu(dot)com" <wangw(dot)fnst(at)fujitsu(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Perform streaming logical transactions by background workers and parallel apply
Date: 2022-10-20 03:18:46
Message-ID: CAFiTN-vOovtK2ENFqat8fUndhqvPeT+Latd2SKA3GmQitkQK3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 18, 2022 at 6:25 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> > Interesting case. So I think the root of the problem is the same as
> > what we have for a column is marked unique to the subscriber but not
> > to the publisher. In short, two transactions which are independent of
> > each other on the publisher are dependent on each other on the
> > subscriber side because table definition is different on the
> > subscriber. So can't we handle this case in the same way by marking
> > this table unsafe for parallel-apply?
> >
>
> Yes, we can do that. I think Hou-San has already dealt that way in his
> latest patch [1]. See his response in the email [1]: "Disallow
> replicating from or to a partitioned table in parallel streaming
> mode".
>
> [1] - https://www.postgresql.org/message-id/OS0PR01MB57160760B34E1655718F4D1994249%40OS0PR01MB5716.jpnprd01.prod.outlook.com

Okay, somehow I missed the latest email. I will look into it soon.

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-10-20 04:15:59 Re: GUC values - recommended way to declare the C variables?
Previous Message Zhang Mingli 2022-10-20 03:02:52 Documentation refinement for Parallel Scans