summaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-07-17 10:51:00 -0500
committerNathan Bossart <nathan@postgresql.org>2024-07-17 10:51:00 -0500
commit925479b8d83c2fc819e05bf67335255c13d8e8de (patch)
tree4e75b062c1ffe50f1b3a9fd29b20200025742bcf /src/backend/commands/explain.c
parent5d797c896fcf0ef04e4fc3354bc94512e8886cb2 (diff)
Use PqMsg_* macros in more places.
Commit f4b54e1ed9, which introduced macros for protocol characters, missed updating a few places. It also did not introduce macros for messages sent from parallel workers to their leader processes. This commit adds a new section in protocol.h for those. Author: Aleksander Alekseev Discussion: https://postgr.es/m/CAJ7c6TNTd09AZq8tGaHS3LDyH_CCnpv0oOz2wN1dGe8zekxrdQ%40mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r--src/backend/commands/explain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 94511a5a024..8086607710e 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -21,6 +21,7 @@
#include "foreign/fdwapi.h"
#include "jit/jit.h"
#include "libpq/pqformat.h"
+#include "libpq/protocol.h"
#include "nodes/extensible.h"
#include "nodes/makefuncs.h"
#include "nodes/nodeFuncs.h"
@@ -5416,7 +5417,7 @@ serializeAnalyzeReceive(TupleTableSlot *slot, DestReceiver *self)
* Note that we fill a StringInfo buffer the same as printtup() does, so
* as to capture the costs of manipulating the strings accurately.
*/
- pq_beginmessage_reuse(buf, 'D');
+ pq_beginmessage_reuse(buf, PqMsg_DataRow);
pq_sendint16(buf, natts);