Skip to content

Commit 4aac8e3

Browse files
committed
Skip pg_catalog Oid lookup
pg_catalog Oid is hardcoded in postgres so we can skip the lookup and instead use PG_CATALOG_NAMESPACE
1 parent b1b95a0 commit 4aac8e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/func_cache.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ initialize_func_info()
537537
};
538538
Oid extension_nsp = ts_extension_schema_oid();
539539
Oid experimental_nsp = get_namespace_oid(ts_experimental_schema_name(), false);
540-
Oid pg_nsp = get_namespace_oid("pg_catalog", false);
541540
HeapTuple tuple;
542541
Relation rel;
543542

@@ -551,7 +550,7 @@ initialize_func_info()
551550
for (size_t i = 0; i < _MAX_CACHE_FUNCTIONS; i++)
552551
{
553552
FuncInfo *finfo = &funcinfo[i];
554-
Oid namespaceoid = pg_nsp;
553+
Oid namespaceoid = PG_CATALOG_NAMESPACE;
555554
oidvector *paramtypes = buildoidvector(finfo->arg_types, finfo->nargs);
556555
FuncEntry *fentry;
557556
bool hash_found;

0 commit comments

Comments
 (0)