RE: BUG #18267: Logical replication bug: data is not synchronized after Alter Publication.
От | Hayato Kuroda (Fujitsu) |
---|---|
Тема | RE: BUG #18267: Logical replication bug: data is not synchronized after Alter Publication. |
Дата | |
Msg-id | TY3PR01MB9889E2912FFC40F5418EFF30F56A2@TY3PR01MB9889.jpnprd01.prod.outlook.com обсуждение исходный текст |
Ответ на | Re: BUG #18267: Logical replication bug: data is not synchronized after Alter Publication. (Dilip Kumar <dilipbalaut@gmail.com>) |
Список | pgsql-bugs |
Dear Dilip, > > > The root cause of the problem is as follows: > > > pgoutput relies on the invalidation mechanism to validate publications. When > > > walsender decoding an Alter Publication transaction, catalog caches are > > > invalidated at once. Furthermore, since pg_publication_rel is modified, > > > snapshot changes are added to all transactions currently being decoded. For > > > other transactions, catalog caches have been invalidated. However, it is > > > likely that the snapshot changes have not yet been decoded. In pgoutput > > > implementation, these transactions query the system table pg_publication_rel > > > to determine whether to publish changes made in transactions. In this case, > > > catalog tuples are not found because snapshot has not been updated. As a > > > result, changes in transactions are considered not to be published, and > > > subsequent data cannot be synchronized. > > > > > > I think it's necessary to add invalidations to other transactions after > > > adding a snapshot change to them. > > > Therefore, I submitted a patch for this bug. > > > > I cannot see your attaching, but I found that proposed patch in [1] can solve > > the issue. After applying 0001 + 0002 + 0003 (open relations as > ShareRowExclusiveLock, > > in OpenTableList), the data gap was removed. Thought? > > Not sure why 'open relations as ShareRowExclusiveLock' would help in > this case? have you investigated that? > Sorry for confusing, I did not analyze because I thought Song will tell us the reason with his patch. I have just reported my tested... I will spend time later based on the requirement. Best Regards, Hayato Kuroda FUJITSU LIMITED
В списке pgsql-bugs по дате отправления: