Use cached schema if available

This commit is contained in:
Blottiere Paul 2022-03-30 23:42:21 +02:00
parent 7b5554db00
commit fbbf3de644

View File

@ -581,7 +581,7 @@ Datum pcpatch_unnest(PG_FUNCTION_ARGS)
*/
serpatch = PG_GETARG_SERPATCH_P(0);
patch = pc_patch_deserialize(serpatch,
pc_schema_from_pcid_uncached(serpatch->pcid));
pc_schema_from_pcid(serpatch->pcid, fcinfo));
/* allocate memory for user context */
fctx = (pcpatch_unnest_fctx *)palloc(sizeof(pcpatch_unnest_fctx));