MCPcopy Create free account
hub / github.com/apache/cloudberry / ExplainIndentText

Function ExplainIndentText

src/backend/commands/explain.c:6008–6014  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

6006 * (cf. ExplainOpenWorker); in that case, don't indent any more.
6007 */
6008static void
6009ExplainIndentText(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.

Callers 14

ExplainPrintJITFunction · 0.85
ExplainNodeFunction · 0.85
show_tablesampleFunction · 0.85
show_sort_infoFunction · 0.85
show_hash_infoFunction · 0.85
show_memoize_infoFunction · 0.85
show_hashagg_infoFunction · 0.85
show_tidbitmap_infoFunction · 0.85
show_buffer_usageFunction · 0.85
show_wal_usageFunction · 0.85
show_modifytable_infoFunction · 0.85
ExplainOpenWorkerFunction · 0.85

Calls 1

appendStringInfoSpacesFunction · 0.85

Tested by

no test coverage detected