From: | vignesh C <vignesh21(at)gmail(dot)com> |
---|---|
To: | Sergey Tatarintsev <s(dot)tatarintsev(at)postgrespro(dot)ru> |
Cc: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Restrict publishing of partitioned table with a foreign table as partition |
Date: | 2025-02-04 12:46:24 |
Message-ID: | CALDaNm0sYZN+E5A9Br3JEBkdWL9t7obSFtNa5_n7h=jokWoB5A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 31 Jan 2025 at 10:38, Sergey Tatarintsev
<s(dot)tatarintsev(at)postgrespro(dot)ru> wrote:
>
> Ok, but maybe it will be correct to raise an WARNING (or at least LOG)
> that some tables was skipped during publication. What do you think?
>
> And I think we need check tables which was really published in case of
> 'FOR ALL TABLES' and 'FOR TABLES IN SCHEMA' in our tests. See attach.
>
> Also it looks strange - we raise an ERROR for partitioned tables
> containing foreign partitions , but just skip foreign tables as itself.
> I think there should be the same behavior in both cases - raise an ERROR
> or skip.
I believe this behavior is acceptable. We should throw an error for
partitioned tables that contain foreign partitions, as this would
include the data from these foreign tables during the initial sync,
while incremental changes would not be replicated. However, in the
case of foreign tables, neither the initial sync nor the incremental
sync will occur. Additionally, it is documented in [1] that foreign
tables are not supported, so this behavior is in line with the
documentation and is acceptable.
[1] - https://www.postgresql.org/docs/current/logical-replication-restrictions.html
Regards,
Vignesh
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2025-02-04 13:01:19 | Re: Restrict publishing of partitioned table with a foreign table as partition |
Previous Message | Hayato Kuroda (Fujitsu) | 2025-02-04 12:16:28 | RE: Introduce XID age and inactive timeout based replication slot invalidation |