&isnull);
if (!isnull)
{
- ArrayType *array;
+ ArrayType *array;
+
oldcxt = MemoryContextSwitchTo(fcinfo->flinfo->fn_mcxt);
array = DatumGetArrayTypeP(datum);
TransformGUCArray(array, &fcache->configNames,
/* GetUserIdAndSecContext is cheap enough that no harm in a wasted call */
GetUserIdAndSecContext(&save_userid, &save_sec_context);
- if (fcache->configNames != NIL) /* Need a new GUC nesting level */
+ if (fcache->configNames != NIL) /* Need a new GUC nesting level */
save_nestlevel = NewGUCNestLevel();
else
save_nestlevel = 0; /* keep compiler quiet */
forboth(lc1, fcache->configNames, lc2, fcache->configValues)
{
- GucContext context = superuser() ? PGC_SUSET : PGC_USERSET;
- GucSource source = PGC_S_SESSION;
- GucAction action = GUC_ACTION_SAVE;
- char *name = lfirst(lc1);
- char *value = lfirst(lc2);
+ GucContext context = superuser() ? PGC_SUSET : PGC_USERSET;
+ GucSource source = PGC_S_SESSION;
+ GucAction action = GUC_ACTION_SAVE;
+ char *name = lfirst(lc1);
+ char *value = lfirst(lc2);
(void) set_config_option(name, value,
context, source,
ProcessGUCArray(ArrayType *array,
GucContext context, GucSource source, GucAction action)
{
- List *gucNames;
- List *gucValues;
- ListCell *lc1;
- ListCell *lc2;
+ List *gucNames;
+ List *gucValues;
+ ListCell *lc1;
+ ListCell *lc2;
TransformGUCArray(array, &gucNames, &gucValues);
forboth(lc1, gucNames, lc2, gucValues)
{
- char *name = lfirst(lc1);
- char *value = lfirst(lc2);
+ char *name = lfirst(lc1);
+ char *value = lfirst(lc2);
(void) set_config_option(name, value,
context, source,
* This value is double braced to workaround GCC bug 53119, which seems to
* exist at least on gcc (Debian 4.7.2-5) 4.7.2, 32-bit.
*/
- PgBenchValue vargs[MAX_FARGS] = { { 0 } };
+ PgBenchValue vargs[MAX_FARGS] = {{0}};
for (nargs = 0; nargs < MAX_FARGS && l != NULL; nargs++, l = l->next)
{