aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-01-07 15:34:19 -0600
committerNathan Bossart <nathan@postgresql.org>2025-01-07 15:34:19 -0600
commite43537cdc36146f1becc0084b1acc24a46074ae6 (patch)
tree796a5224330e05e8a5cb5a199670b33cbce55afa /src/backend/tcop/postgres.c
parentd7905aa1da00115d56ca199b848bcc93fbedf2c8 (diff)
downloadpostgresql-e43537cdc36146f1becc0084b1acc24a46074ae6.tar.gz
postgresql-e43537cdc36146f1becc0084b1acc24a46074ae6.zip
Use PqMsg_* macros in postgres.c.
Commit f4b54e1ed9, which introduced macros for protocol characters, missed updating a couple of places in postgres.c. Author: Dave Cramer Reviewed-by: Fabrízio de Royes Mello Discussion: https://postgr.es/m/CADK3HHJUVBPoVOmFesPB-fN8_dYt%2BQELV2UB6jxOW2Z40qF-qw%40mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 1887b11982c..9cd1d0abe35 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -323,7 +323,7 @@ InteractiveBackend(StringInfo inBuf)
printf("statement: %s\n", inBuf->data);
fflush(stdout);
- return 'Q';
+ return PqMsg_Query;
}
/*
@@ -4966,9 +4966,9 @@ PostgresMain(const char *dbname, const char *username)
break;
/*
- * 'X' means that the frontend is closing down the socket. EOF
- * means unexpected loss of frontend connection. Either way,
- * perform normal shutdown.
+ * PqMsg_Terminate means that the frontend is closing down the
+ * socket. EOF means unexpected loss of frontend connection.
+ * Either way, perform normal shutdown.
*/
case EOF: