{
if (tuphdr->t_infomask & HEAP_HASNULL)
{
- int bits_len =
- ((tuphdr->t_infomask2 & HEAP_NATTS_MASK) / 8 + 1) * 8;
+ int bits_len;
+ bits_len =
+ ((tuphdr->t_infomask2 & HEAP_NATTS_MASK) / 8 + 1) * 8;
values[11] = CStringGetTextDatum(
- bits_to_text(tuphdr->t_bits, bits_len));
+ bits_to_text(tuphdr->t_bits, bits_len));
}
else
nulls[11] = true;
if (estate->es_instrument)
{
instrumentation_len =
- offsetof(SharedExecutorInstrumentation, plan_node_id)
- + sizeof(int) * e.nnodes;
+ offsetof(SharedExecutorInstrumentation, plan_node_id) +
+ sizeof(int) * e.nnodes;
instrumentation_len = MAXALIGN(instrumentation_len);
instrument_offset = instrumentation_len;
instrumentation_len += sizeof(Instrumentation) * e.nnodes * nworkers;
/* Also store the per-worker detail. */
ibytes = instrumentation->num_workers * sizeof(Instrumentation);
planstate->worker_instrument =
- palloc(offsetof(WorkerInstrumentation, instrument) + ibytes);
+ palloc(ibytes + offsetof(WorkerInstrumentation, instrument));
planstate->worker_instrument->num_workers = instrumentation->num_workers;
memcpy(&planstate->worker_instrument->instrument, instrument, ibytes);
Expr *transfnexpr;
/*
- * Set up infrastructure for calling the transfn
+ * Set up infrastructure for calling the transfn. Note that invtrans
+ * is not needed here.
*/
build_aggregate_transfn_expr(inputTypes,
numArguments,
aggtranstype,
aggref->inputcollid,
aggtransfn,
- InvalidOid, /* invtrans is not needed here */
+ InvalidOid,
&transfnexpr,
NULL);
fmgr_info(aggtransfn, &pertrans->transfn);
|| (sflaglen > 2 && Conf->flagMode == FM_LONG))
goto nextline;
- /*
+ /*--------
* Affix header. For example:
* SFX \ N 1
+ *--------
*/
if (fields_read == 4)
{
else
flagflags = 0;
}
- /*
+ /*--------
* Affix fields. For example:
- * SFX \ 0 Y/L [^Y]
+ * SFX \ 0 Y/L [^Y]
+ *--------
*/
else
{
}
}
- pos = prs.words[count].pos.pos; /* save current word's position */
+ /* save current word's position */
+ pos = prs.words[count].pos.pos;
/* Go through all variants obtained from this token */
cntvar = 0;
}
if (cntpos)
- pushOperator(state, data->qoperator, 1); /* distance may be useful */
+ {
+ /* distance may be useful */
+ pushOperator(state, data->qoperator, 1);
+ }
+
cntpos++;
}
else if (pg_strcasecmp(strptr, "kb") == 0)
multiplier = (int64) 1024;
else if (pg_strcasecmp(strptr, "mb") == 0)
- multiplier = (int64) 1024 * 1024;
+ multiplier = ((int64) 1024) * 1024;
+
else if (pg_strcasecmp(strptr, "gb") == 0)
- multiplier = (int64) 1024 * 1024 * 1024;
+ multiplier = ((int64) 1024) * 1024 * 1024;
+
else if (pg_strcasecmp(strptr, "tb") == 0)
- multiplier = (int64) 1024 * 1024 * 1024 * 1024;
+ multiplier = ((int64) 1024) * 1024 * 1024 * 1024;
+
else
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
check_stack_depth();
if (curitem->type == QI_VAL)
- return checkcondition_gin_internal(gcv,
- (QueryOperand *) curitem,
- NULL /* don't have any position info */);
+ return
+ checkcondition_gin_internal(gcv,
+ (QueryOperand *) curitem,
+ NULL /* don't have position info */ );
switch (curitem->qoperator.oper)
{
posvout->pos[npos++] = posvin->pos[k];
}
- if (!npos) /* no satisfactory positions found, so skip that lexeme */
+ /* if no satisfactory positions found, skip lexeme */
+ if (!npos)
continue;
arrout[j].haspos = true;