aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.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
commita99cc6c6b4bf083d72fb1e8adfb665a449b7a37f (patch)
tree65d23b9e0ed431f8ad963027dd038afe40be40cf /src/backend/tcop/postgres.c
parentf2a0d5808c246e556efbe3df0fb2be7841e3c988 (diff)
downloadpostgresql-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/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index e39c6804a73..ea517f4b9bb 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2651,8 +2651,7 @@ exec_describe_statement_message(const char *stmt_name)
/*
* First describe the parameters...
*/
- pq_beginmessage_reuse(&row_description_buf, 't'); /* parameter description
- * message type */
+ pq_beginmessage_reuse(&row_description_buf, PqMsg_ParameterDescription);
pq_sendint16(&row_description_buf, psrc->num_params);
for (int i = 0; i < psrc->num_params; i++)