Skip to content

Commit

Permalink
Refactor initialize_func_info()
Browse files Browse the repository at this point in the history
Replace unnecessary chain of ts_extension_schema_oid() ->
ts_extension_schema_name() -> get_namespace_oid() calls with
a single OID lookup.
  • Loading branch information
afiskon committed Jun 22, 2021
1 parent 59d868b commit 5999af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/func_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ initialize_func_info()
.entrysize = sizeof(FuncEntry),
.hcxt = CacheMemoryContext,
};
Oid extension_nsp = get_namespace_oid(ts_extension_schema_name(), false);
Oid extension_nsp = ts_extension_schema_oid();
Oid pg_nsp = get_namespace_oid("pg_catalog", false);
HeapTuple tuple;
Relation rel;
Expand Down

0 comments on commit 5999af5

Please sign in to comment.