pgoutput: comment atop rel_sync_cache_publication_cb() has an inconsistency

Started by Hayato Kuroda (Fujitsu)over 1 year ago2 messageshackers
Jump to latest
#1Hayato Kuroda (Fujitsu)
kuroda.hayato@fujitsu.com

Dear hackers,

While reading the code, I found $SUBJECT. It says:

```
/*
* Publication relation/schema map syscache invalidation callback
*
* Called for invalidations on pg_publication and pg_namespace.
*/
static void
rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
```

But this won't be called for invalidating pg_publication. It should have been
updated by 3abe9dc1, but it was an oversight.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

Attachments:

0001-pgoutput-Update-code-comment.patchapplication/octet-stream; name=0001-pgoutput-Update-code-comment.patchDownload+1-2
#2Amit Kapila
amit.kapila16@gmail.com
In reply to: Hayato Kuroda (Fujitsu) (#1)
Re: pgoutput: comment atop rel_sync_cache_publication_cb() has an inconsistency

On Tue, Mar 25, 2025 at 8:31 AM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:

Dear hackers,

While reading the code, I found $SUBJECT. It says:

```
/*
* Publication relation/schema map syscache invalidation callback
*
* Called for invalidations on pg_publication and pg_namespace.
*/
static void
rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
```

But this won't be called for invalidating pg_publication. It should have been
updated by 3abe9dc1, but it was an oversight.

Agreed and thanks for the patch.

--
With Regards,
Amit Kapila.