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