Re: row filtering for logical replication
От | Peter Smith |
---|---|
Тема | Re: row filtering for logical replication |
Дата | |
Msg-id | CAHut+PvgJDwkkd5n5xLZnOqmxFYSQ1iYeMyU0_-6XQJXqoLDRw@mail.gmail.com обсуждение исходный текст |
Ответ на | RE: row filtering for logical replication ("houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>) |
Список | pgsql-hackers |
On Tue, Jan 25, 2022 at 2:18 PM houzj.fnst@fujitsu.com <houzj.fnst@fujitsu.com> wrote: > ... > > 4. src/backend/utils/cache/relcache.c - RelationBuildPublicationDesc > > > > - if (relation->rd_pubactions) > > + if (relation->rd_pubdesc) > > { > > - pfree(relation->rd_pubactions); > > - relation->rd_pubactions = NULL; > > + pfree(relation->rd_pubdesc); > > + relation->rd_pubdesc = NULL; > > } > > > > What is the purpose of this code? Can't it all just be removed? > > e.g. Can't you Assert that relation->rd_pubdesc is NULL at this point? > > > > (if it was not-null the function would have returned immediately from the top) > > I think it might be better to change this as a separate patch. OK. I have made a separate thread [1[ for discussing this one. ------ [1] https://www.postgresql.org/message-id/flat/1524753.1644453267%40sss.pgh.pa.us#1c40bbc4126daaf75b927a021526654a Kind Regards, Peter Smith. Fujitsu Australia
В списке pgsql-hackers по дате отправления: