On Fri, 4 Apr 2025 at 10:36, Sergey Tatarintsev <s.tatarint...@postgrespro.ru> wrote: > > 01.04.2025 21:48, Shlok Kyal пишет: > > On Fri, 28 Mar 2025 at 16:35, Álvaro Herrera <alvhe...@alvh.no-ip.org> > > wrote: > >> On 2025-Mar-28, Shlok Kyal wrote: > >> > >>> On Mon, 24 Mar 2025 at 21:17, Álvaro Herrera <alvhe...@alvh.no-ip.org> > >>> wrote: > >>>> Also, surely we should document this restriction in the SGML docs > >>>> somewhere. > >>> I have added comment in create_publication.sgml > >> Hmm, okay, but "We cannot" is not the style used in the documentation. > >> In addition, I think this mechanism should be mentioned in > >> logical-replication.sgml; currently there's a note in the Restrictions > >> section about foreign tables, which should be expanded to explain this. > >> > > I have modified the comment in create_publication.sgml and also added > > comment in the restrictions section of logical-replication.sgml. > > I have also added a more detailed explanation in comment of > > 'check_foreign_tables' > > > > I have attached the updated v11 patch. > > > > > > Thanks and Regards, > > Shlok Kyal > > Hi! > > I looked at the latest version of the patch, and think that we should > free puboids list here: > > diff --git a/src/backend/commands/tablecmds.c > b/src/backend/commands/tablecmds.c > index 6a128f7bd4e..4254654cc24 100644 > --- a/src/backend/commands/tablecmds.c > +++ b/src/backend/commands/tablecmds.c > @@ -20122,6 +20122,7 @@ ATExecAttachPartition(List **wqueue, Relation > rel, PartitionCmd *cmd, > relname))); > } > } > + list_free(puboids); > } > > /* >
Hi Sergey, Thanks for reviewing the patch. I have fixed the comment. I also found other places where we should free the relids, schemaoids, and puboids list. I have added changes for those as well. I have attached the updated patch. Thanks and Regards, Shlok Kyal
v12-0001-Restrict-publishing-of-partitioned-table-with-fo.patch
Description: Binary data