Re: ObjectIdGetDatum() missing from SearchSysCache*() callers
Zhang Mingli <zmlpostgres@gmail.com>
From: Zhang Mingli <zmlpostgres@gmail.com>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>, Michael
Paquier <michael@paquier.xyz>
Date: 2023-07-17T13:09:01Z
Lists: pgsql-hackers
Hi Regards, Zhang Mingli On Jul 17, 2023 at 19:10 +0800, Michael Paquier <michael@paquier.xyz>, wrote: > Hi all, > > While scanning the code, I have noticed that a couple of code paths > that do syscache lookups are passing down directly Oids rather than > Datums. I think that we'd better be consistent here, even if there is > no actual bug. > > I have noticed 11 callers of SearchSysCache*() that pass down > an Oid instead of a Datum. > > Thoughts or comments? > -- > Michael LGTM, and there are two functions missed, in sequence_options pgstuple = SearchSysCache1(SEQRELID, relid); Shall we fix that too?
Commits
-
Add missing ObjectIdGetDatum() in syscache lookup calls for Oids
- 2a990abd79ac 17.0 landed