@@ -669,7 +669,8 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
669
669
& isnull );
670
670
if (!isnull )
671
671
{
672
- ArrayType * array ;
672
+ ArrayType * array ;
673
+
673
674
oldcxt = MemoryContextSwitchTo (fcinfo -> flinfo -> fn_mcxt );
674
675
array = DatumGetArrayTypeP (datum );
675
676
TransformGUCArray (array , & fcache -> configNames ,
@@ -686,7 +687,7 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
686
687
687
688
/* GetUserIdAndSecContext is cheap enough that no harm in a wasted call */
688
689
GetUserIdAndSecContext (& save_userid , & save_sec_context );
689
- if (fcache -> configNames != NIL ) /* Need a new GUC nesting level */
690
+ if (fcache -> configNames != NIL ) /* Need a new GUC nesting level */
690
691
save_nestlevel = NewGUCNestLevel ();
691
692
else
692
693
save_nestlevel = 0 ; /* keep compiler quiet */
@@ -697,11 +698,11 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
697
698
698
699
forboth (lc1 , fcache -> configNames , lc2 , fcache -> configValues )
699
700
{
700
- GucContext context = superuser () ? PGC_SUSET : PGC_USERSET ;
701
- GucSource source = PGC_S_SESSION ;
702
- GucAction action = GUC_ACTION_SAVE ;
703
- char * name = lfirst (lc1 );
704
- char * value = lfirst (lc2 );
701
+ GucContext context = superuser () ? PGC_SUSET : PGC_USERSET ;
702
+ GucSource source = PGC_S_SESSION ;
703
+ GucAction action = GUC_ACTION_SAVE ;
704
+ char * name = lfirst (lc1 );
705
+ char * value = lfirst (lc2 );
705
706
706
707
(void ) set_config_option (name , value ,
707
708
context , source ,
0 commit comments