Dear Sawada-san, > Given that cache invalidation is executed upon replaying > REORDER_BUFFER_CHANGE_INVALIDATION and the end of a transaction > replay, in which case do we keep the relcache (i.e. just setting > replicate_valid=false) because of in_use=true?
Per old discussion [1], logicalrep_write_tuple ->SearchSysCache1 can cause the cache invalidation (I did not verify though). I felt in this case in_use can be true and validation can be skipped. Thought? [1]: https://www.postgresql.org/message-id/OS0PR01MB57168F454E33D53551B8D20294259%40OS0PR01MB5716.jpnprd01.prod.outlook.com Best regards, Hayato Kuroda FUJITSU LIMITED