Re: adding partitioned tables to publications - Mailing list pgsql-hackers

From Rafia Sabih
Subject Re: adding partitioned tables to publications
Date
Msg-id CA+FpmFeusJ3oDYmoQFk4CW1Z1ZG7RrZ36bFy-hm9Jc4gie-gpw@mail.gmail.com
Whole thread Raw
In response to Re: adding partitioned tables to publications  (Amit Langote <amitlangote09@gmail.com>)
Responses Re: adding partitioned tables to publications  (Amit Langote <amitlangote09@gmail.com>)
List pgsql-hackers

Hi Amit,

On Fri, 11 Oct 2019 at 08:06, Amit Langote <amitlangote09@gmail.com> wrote:

Thanks for sharing this case.  I hadn't considered it, but you're
right that it should be handled sensibly.  I have fixed table sync
code to handle this case properly.  Could you please check your case
with the attached updated patch?

I was checking this today and found that the behavior doesn't change much with the updated patch. The tables are still replicated, just that a select count from parent table shows 0, rest of the partitions including default one has the data from the publisher. I was expecting more like an error at subscriber saying the table type is not same. 

Please find the attached file for the test case, in case something is unclear.

--
Regards,
Rafia Sabih
Attachment

pgsql-hackers by date:

Previous
From: Euler Taveira
Date:
Subject: Re: auxiliary processes in pg_stat_ssl
Next
From: Alvaro Herrera
Date:
Subject: Re: Missed check for too-many-children in bgworker spawning