Skip to content

Commit

Permalink
Schema cache is not initialized at that time
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Aug 19, 2022
1 parent 18b70f0 commit a952f0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pgsql/pc_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,13 @@ Datum pcpatch_unnest(PG_FUNCTION_ARGS)
* passed array will stick around till then.)
*/
serpatch = PG_GETARG_SERPATCH_P(0);

/* The schema cache is not initialized at that time but we need the
* constants cache
*/
pointcloud_init_constants_cache();
patch = pc_patch_deserialize(serpatch,
pc_schema_from_pcid(serpatch->pcid, fcinfo));
pc_schema_from_pcid_uncached(serpatch->pcid));

/* allocate memory for user context */
fctx = (pcpatch_unnest_fctx *)palloc(sizeof(pcpatch_unnest_fctx));
Expand Down

0 comments on commit a952f0d

Please sign in to comment.