mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Introduce macros for protocol characters.
This commit introduces descriptively-named macros for the identifiers used in wire protocol messages. These new macros are placed in a new header file so that they can be easily used by third-party code. Author: Dave Cramer Reviewed-by: Alvaro Herrera, Tatsuo Ishii, Peter Smith, Robert Haas, Tom Lane, Peter Eisentraut, Michael Paquier Discussion: https://postgr.es/m/CADK3HHKbBmK-PKf1bPNFoMC%2BoBt%2BpD9PH8h5nvmBQskEHm-Ehw%40mail.gmail.com
This commit is contained in:
@@ -2281,7 +2281,7 @@ NotifyMyFrontEnd(const char *channel, const char *payload, int32 srcPid)
|
||||
{
|
||||
StringInfoData buf;
|
||||
|
||||
pq_beginmessage(&buf, 'A');
|
||||
pq_beginmessage(&buf, PqMsg_NotificationResponse);
|
||||
pq_sendint32(&buf, srcPid);
|
||||
pq_sendstring(&buf, channel);
|
||||
pq_sendstring(&buf, payload);
|
||||
|
||||
Reference in New Issue
Block a user