Refactor initialize_func_info().

Replace unnecessary chain of ts_extension_schema_oid() ->
ts_extension_schema_name() -> get_namespace_oid() calls with
a single OID lookup.
This commit is contained in:
Aleksander Alekseev 2021-06-21 12:50:26 +03:00 committed by Aleksander Alekseev
parent 59d868bdf1
commit 9eec2a544c

View File

@ -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;