Skip to content

Commit 4a68d50

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 f7e1b38 commit 4a68d50

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
@@ -310,7 +310,7 @@ InteractiveBackend(StringInfo inBuf)
310310
printf("statement: %s\n", inBuf->data);
311311
fflush(stdout);
312312

313-
return 'Q';
313+
return PqMsg_Query;
314314
}
315315

316316
/*
@@ -4897,9 +4897,9 @@ PostgresMain(const char *dbname, const char *username)
48974897
break;
48984898

48994899
/*
4900-
* 'X' means that the frontend is closing down the socket. EOF
4901-
* means unexpected loss of frontend connection. Either way,
4902-
* perform normal shutdown.
4900+
* PqMsg_Terminate means that the frontend is closing down the
4901+
* socket. EOF means unexpected loss of frontend connection.
4902+
* Either way, perform normal shutdown.
49034903
*/
49044904
case EOF:
49054905

0 commit comments

Comments
 (0)