Add missing RangeTblEntry field to jumble
authorPeter Eisentraut <[email protected]>
Thu, 29 Feb 2024 13:05:56 +0000 (14:05 +0100)
committerPeter Eisentraut <[email protected]>
Thu, 29 Feb 2024 13:09:09 +0000 (14:09 +0100)
RangeTblEntry.funcordinality should be jumbled, because the WITH
ORDINALITY clause changes the query result.

This was apparently an oversight in the past.

Discussion: https://www.postgresql.org/message-id/flat/d7f421f8-fd6d-4759-adc3-247090a5d44b%40eisentraut.org

src/backend/nodes/queryjumblefuncs.c

index 82f725baaa55c6122e3348a683b6d262ca767dd0..426112fa37b7d60bf817a297c4b186fde6018124 100644 (file)
@@ -375,6 +375,7 @@ _jumbleRangeTblEntry(JumbleState *jstate, Node *node)
            break;
        case RTE_FUNCTION:
            JUMBLE_NODE(functions);
+           JUMBLE_FIELD(funcordinality);
            break;
        case RTE_TABLEFUNC:
            JUMBLE_NODE(tablefunc);