diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-07-17 10:51:00 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-07-17 10:51:00 -0500 |
commit | a99cc6c6b4bf083d72fb1e8adfb665a449b7a37f (patch) | |
tree | 65d23b9e0ed431f8ad963027dd038afe40be40cf /src/include/libpq/protocol.h | |
parent | f2a0d5808c246e556efbe3df0fb2be7841e3c988 (diff) | |
download | postgresql-a99cc6c6b4bf083d72fb1e8adfb665a449b7a37f.tar.gz postgresql-a99cc6c6b4bf083d72fb1e8adfb665a449b7a37f.zip |
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/libpq/protocol.h')
-rw-r--r-- | src/include/libpq/protocol.h | 4 |
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 */ |