{
const char **rt_identifiers;
StringInfo buf;
+ int wrap_column;
} pgpa_output_context;
static void pgpa_debug_out_clumped_join(pgpa_output_context *context,
context.rt_identifiers = rt_identifiers;
context.buf = buf;
+ context.wrap_column = 79; /* XXX */
foreach(lc, walker->unrolled_joins)
{
}
else
{
- pgpa_maybe_linebreak(context->buf, 79);
+ pgpa_maybe_linebreak(context->buf, context->wrap_column);
appendStringInfo(context->buf, " %s", identifier);
}
}
{
char *cstrategy;
- pgpa_maybe_linebreak(context->buf, 79);
+ pgpa_maybe_linebreak(context->buf, context->wrap_column);
cstrategy = pgpa_cstring_join_strategy(join->strategy[k]);
appendStringInfo(context->buf, " %s", cstrategy);
- pgpa_maybe_linebreak(context->buf, 79);
+ pgpa_maybe_linebreak(context->buf, context->wrap_column);
appendStringInfoChar(context->buf, ' ');
pgpa_debug_out_join_member(context, &join->inner[k]);
}
}
else
{
- pgpa_maybe_linebreak(context->buf, 79);
+ pgpa_maybe_linebreak(context->buf, context->wrap_column);
appendStringInfo(context->buf, " %s", identifier);
}
}