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:33:42Z
Lists: pgsql-hackers
Attachments
- v2-0001-Pass-Datum-to-SearchSysCache-instead-of-Oid.patch (application/octet-stream) patch v2-0001
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.
--
Best regards,
Aleksander Alekseev
Commits
-
Add missing ObjectIdGetDatum() in syscache lookup calls for Oids
- 2a990abd79ac 17.0 landed