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(m,n) (((m) << 16) | (n))
96 #define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0)
97 #define PG_PROTOCOL_LATEST PG_PROTOCOL(3,0)
118 #define MAX_STARTUP_PACKET_LENGTH 10000
132 #define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678)
147 #define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
148 #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