mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-19 20:24:46 +08:00
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:
parent
59d868bdf1
commit
9eec2a544c
@ -378,7 +378,7 @@ initialize_func_info()
|
|||||||
.entrysize = sizeof(FuncEntry),
|
.entrysize = sizeof(FuncEntry),
|
||||||
.hcxt = CacheMemoryContext,
|
.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);
|
Oid pg_nsp = get_namespace_oid("pg_catalog", false);
|
||||||
HeapTuple tuple;
|
HeapTuple tuple;
|
||||||
Relation rel;
|
Relation rel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user