summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorNathan Bossart2024-07-17 15:51:00 +0000
committerNathan Bossart2024-07-17 15:51:00 +0000
commit925479b8d83c2fc819e05bf67335255c13d8e8de (patch)
tree4e75b062c1ffe50f1b3a9fd29b20200025742bcf /src/include
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/include')
-rw-r--r--src/include/libpq/protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/libpq/protocol.h b/src/include/libpq/protocol.h
index 4b8d4403656..b71add1ec15 100644
--- a/src/include/libpq/protocol.h
+++ b/src/include/libpq/protocol.h
@@ -65,6 +65,10 @@
#define PqMsg_CopyData 'd'
+/* These are the codes sent by parallel workers to leader processes. */
+#define PqMsg_Progress 'P'
+
+
/* These are the authentication request codes sent by the backend. */
#define AUTH_REQ_OK 0 /* User is authenticated */