Use PqMsg_Progress macro in HandleParallelMessage().
authorNathan Bossart <nathan@postgresql.org>
Fri, 14 Feb 2025 18:57:13 +0000 (12:57 -0600)
committerNathan Bossart <nathan@postgresql.org>
Fri, 14 Feb 2025 18:57:13 +0000 (12:57 -0600)
Commit a99cc6c6b4 introduced the PqMsg_Progress macro but missed
updating HandleParallelMessage() accordingly.

Backpatch-through: 17

src/backend/access/transam/parallel.c

index 7817bedc2ef330ff14e733d8b052c5fbf7519433..4ab5df9213316d21dfe5b256cbc15da1d3748681 100644 (file)
@@ -1208,7 +1208,7 @@ HandleParallelMessage(ParallelContext *pcxt, int i, StringInfo msg)
                break;
            }
 
-       case 'P':               /* Parallel progress reporting */
+       case PqMsg_Progress:
            {
                /*
                 * Only incremental progress reporting is currently supported.