* Indent a text-format line. * * We indent by two spaces per indentation level. However, when emitting * data for a parallel worker there might already be data on the current line * (cf. ExplainOpenWorker); in that case, don't indent any more. */
| 6006 | * (cf. ExplainOpenWorker); in that case, don't indent any more. |
| 6007 | */ |
| 6008 | static void |
| 6009 | ExplainIndentText(ExplainState *es) |
| 6010 | { |
| 6011 | Assert(es->format == EXPLAIN_FORMAT_TEXT); |
| 6012 | if (es->str->len == 0 || es->str->data[es->str->len - 1] == '\n') |
| 6013 | appendStringInfoSpaces(es->str, es->indent * 2); |
| 6014 | } |
| 6015 | |
| 6016 | /* |
| 6017 | * Emit a JSON line ending. |
no test coverage detected