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))
97#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0)
98#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,0)
119#define MAX_STARTUP_PACKET_LENGTH 10000
133#define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678)
160#define PG_ALPN_PROTOCOL "postgresql"
161#define PG_ALPN_PROTOCOL_VECTOR { 10, 'p','o','s','t','g','r','e','s','q','l' }
167#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
168#define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680)
#define is_absolute_path(filename)
static bool is_unixsock_path(const char *path)
struct CancelRequestPacket CancelRequestPacket
MsgType cancelRequestCode