Skip to content

Commit e43537c

Browse files
Use PqMsg_* macros in postgres.c.
Commit f4b54e1, 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
1 parent d7905aa commit e43537c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ InteractiveBackend(StringInfo inBuf)
323323
printf("statement: %s\n", inBuf->data);
324324
fflush(stdout);
325325

326-
return 'Q';
326+
return PqMsg_Query;
327327
}
328328

329329
/*
@@ -4966,9 +4966,9 @@ PostgresMain(const char *dbname, const char *username)
49664966
break;
49674967

49684968
/*
4969-
* 'X' means that the frontend is closing down the socket. EOF
4970-
* means unexpected loss of frontend connection. Either way,
4971-
* perform normal shutdown.
4969+
* PqMsg_Terminate means that the frontend is closing down the
4970+
* socket. EOF means unexpected loss of frontend connection.
4971+
* Either way, perform normal shutdown.
49724972
*/
49734973
case EOF:
49744974

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy