RE: Selectively invalidate caches in pgoutput module

Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>

From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: 'Zharkov Roman' <r.zharkov@postgrespro.ru>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, Amit Kapila <amit.kapila16@gmail.com>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, "ShlokKumar.Kyal@fujitsu.com" <ShlokKumar.Kyal@fujitsu.com>, Masahiko Sawada <sawada.mshk@gmail.com>
Date: 2026-02-19T13:06:34Z
Lists: pgsql-hackers

Attachments

Dear Zharkov,

Sorry for the very late reply, I completely missed.

After considering bit more, we may be able to remove CallRelSyncCallbacks() function
in the first place. There is only a caller for now and I cannot come up with the case
where we want to call callbacks without the invalidations from other sides.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

Commits

  1. Avoid invalidating all RelationSyncCache entries on publication rename.

  2. Avoid invalidating all RelationSyncCache entries on publication change.