32 struct sockaddr_storage addr;
43#define UNIXSOCK_PATH(path, port, sockdir) \
44 (AssertMacro(sockdir), \
45 AssertMacro(*(sockdir) != '\0'), \
46 snprintf(path, sizeof(path), "%s/.s.PGSQL.%d", \
59#define UNIXSOCK_PATH_BUFLEN sizeof(((struct sockaddr_un *) NULL)->sun_path)
86#define PG_PROTOCOL_MAJOR(v) ((v) >> 16)
87#define PG_PROTOCOL_MINOR(v) ((v) & 0x0000ffff)
88#define PG_PROTOCOL_FULL(v) (PG_PROTOCOL_MAJOR(v) * 10000 + PG_PROTOCOL_MINOR(v))
89#define PG_PROTOCOL(m,n) (((m) << 16) | (n))
94#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0)
95#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,2)
106#define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678)
112#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
113#define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680)
133#define MAX_STARTUP_PACKET_LENGTH 10000
174#define PG_ALPN_PROTOCOL "postgresql"
175#define PG_ALPN_PROTOCOL_VECTOR { 10, 'p','o','s','t','g','r','e','s','q','l' }
#define FLEXIBLE_ARRAY_MEMBER
#define is_absolute_path(filename)
static bool is_unixsock_path(const char *path)
struct CancelRequestPacket CancelRequestPacket
MsgType cancelRequestCode
uint8 cancelAuthCode[FLEXIBLE_ARRAY_MEMBER]