Re: ObjectIdGetDatum() missing from SearchSysCache*() callers

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>, Zhang Mingli <zmlpostgres@gmail.com>
Date: 2023-07-17T14:38:41Z
Lists: pgsql-hackers
Hi,

> > And inside pg_sequence_parameters:
> > pgstuple = SearchSysCache1(SEQRELID, relid);
>
> Found another one in partcache.c:
>
> ```
>     /* Get pg_class.relpartbound */
>     tuple = SearchSysCache1(RELOID, RelationGetRelid(rel));
> ```
>
> I can't be 100% sure but it looks like that's all of them. PFA the
> updated patch v2.

Added a CF entry, just in case:
https://commitfest.postgresql.org/44/4448/


-- 
Best regards,
Aleksander Alekseev



Commits

  1. Add missing ObjectIdGetDatum() in syscache lookup calls for Oids