Use INT64_FORMAT when formatting int64 values in explain
authorTomas Vondra <[email protected]>
Mon, 6 Apr 2020 23:16:57 +0000 (01:16 +0200)
committerTomas Vondra <[email protected]>
Mon, 6 Apr 2020 23:16:57 +0000 (01:16 +0200)
Per report from lapwing.

src/backend/commands/explain.c

index c31f3e0987f0ff2cfd29f2f0d565681d74577fc7..cad10662bb086732ba9fa073fb1f8ea2dbd22801 100644 (file)
@@ -2778,7 +2778,7 @@ show_incremental_sort_group_info(IncrementalSortGroupInfo *groupInfo,
    {
        if (indent)
            appendStringInfoSpaces(es->str, es->indent * 2);
-       appendStringInfo(es->str, "%s Groups: %ld Sort Method", groupLabel,
+       appendStringInfo(es->str, "%s Groups: " INT64_FORMAT " Sort Method", groupLabel,
                         groupInfo->groupCount);
        /* plural/singular based on methodNames size */
        if (list_length(methodNames) > 1)