From fbbf3de644c4f7df2041fbea923e1bcd63b0458e Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Wed, 30 Mar 2022 23:42:21 +0200 Subject: [PATCH] Use cached schema if available --- pgsql/pc_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgsql/pc_access.c b/pgsql/pc_access.c index b174590..d85e316 100644 --- a/pgsql/pc_access.c +++ b/pgsql/pc_access.c @@ -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));