Fix incorrect format placeholders
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 9 Apr 2024 12:33:06 +0000 (14:33 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 9 Apr 2024 12:33:06 +0000 (14:33 +0200)
src/backend/commands/explain.c

index 2c5d980f7291da006d39f56d5fa28a2e2c270e94..c0c73aa3c9c742ba60a586bff8e8845f3615450c 100644 (file)
@@ -1118,12 +1118,12 @@ ExplainPrintSerialize(ExplainState *es, SerializeMetrics *metrics)
    {
        ExplainIndentText(es);
        if (es->timing)
-           appendStringInfo(es->str, "Serialization: time=%.3f ms  output=" INT64_FORMAT "kB  format=%s\n",
+           appendStringInfo(es->str, "Serialization: time=%.3f ms  output=" UINT64_FORMAT "kB  format=%s\n",
                             1000.0 * INSTR_TIME_GET_DOUBLE(metrics->timeSpent),
                             (metrics->bytesSent + 512) / 1024,
                             format);
        else
-           appendStringInfo(es->str, "Serialization: output=" INT64_FORMAT "kB  format=%s\n",
+           appendStringInfo(es->str, "Serialization: output=" UINT64_FORMAT "kB  format=%s\n",
                             (metrics->bytesSent + 512) / 1024,
                             format);