PostgreSQL Source Code
git master
|
#include <sys/time.h>
#include "datatype/timestamp.h"
#include "libpq/hba.h"
#include "libpq/pqcomm.h"
Go to the source code of this file.
Data Structures | |
struct | Port |
Typedefs | |
typedef enum CAC_state | CAC_state |
typedef struct Port | Port |
Enumerations | |
enum | CAC_state { CAC_OK, CAC_STARTUP, CAC_SHUTDOWN, CAC_RECOVERY, CAC_TOOMANY, CAC_SUPERUSER } |
Functions | |
int | pq_getkeepalivesidle (Port *port) |
int | pq_getkeepalivesinterval (Port *port) |
int | pq_getkeepalivescount (Port *port) |
int | pq_gettcpusertimeout (Port *port) |
int | pq_setkeepalivesidle (int idle, Port *port) |
int | pq_setkeepalivesinterval (int interval, Port *port) |
int | pq_setkeepalivescount (int count, Port *port) |
int | pq_settcpusertimeout (int timeout, Port *port) |
Variables | |
ProtocolVersion | FrontendProtocol |
enum CAC_state |
Enumerator | |
---|---|
CAC_OK | |
CAC_STARTUP | |
CAC_SHUTDOWN | |
CAC_RECOVERY | |
CAC_TOOMANY | |
CAC_SUPERUSER |
Definition at line 71 of file libpq-be.h.
int pq_getkeepalivescount | ( | Port * | port | ) |
Definition at line 1865 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_count, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_count, Port::laddr, LOG, and Port::sock.
Referenced by pq_setkeepalivescount(), and show_tcp_keepalives_count().
int pq_getkeepalivesidle | ( | Port * | port | ) |
Definition at line 1696 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_idle, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_idle, Port::laddr, LOG, and Port::sock.
Referenced by pq_setkeepalivesidle(), and show_tcp_keepalives_idle().
int pq_getkeepalivesinterval | ( | Port * | port | ) |
Definition at line 1781 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_interval, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_interval, Port::laddr, LOG, and Port::sock.
Referenced by pq_setkeepalivesinterval(), and show_tcp_keepalives_interval().
int pq_gettcpusertimeout | ( | Port * | port | ) |
Definition at line 1940 of file pqcomm.c.
References SockAddr::addr, Port::default_tcp_user_timeout, ereport, errmsg(), IS_AF_UNIX, Port::laddr, LOG, Port::sock, and Port::tcp_user_timeout.
Referenced by pq_settcpusertimeout(), and show_tcp_user_timeout().
int pq_setkeepalivescount | ( | int | count, |
Port * | port | ||
) |
Definition at line 1895 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_count, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_count, Port::laddr, LOG, pq_getkeepalivescount(), Port::sock, STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_count(), and StreamConnection().
int pq_setkeepalivesidle | ( | int | idle, |
Port * | port | ||
) |
Definition at line 1731 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_idle, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_idle, Port::keepalives_interval, Port::laddr, LOG, pq_getkeepalivesidle(), Port::sock, STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_idle(), and StreamConnection().
int pq_setkeepalivesinterval | ( | int | interval, |
Port * | port | ||
) |
Definition at line 1816 of file pqcomm.c.
References SockAddr::addr, Port::default_keepalives_interval, ereport, errmsg(), IS_AF_UNIX, Port::keepalives_idle, Port::keepalives_interval, Port::laddr, LOG, pq_getkeepalivesinterval(), Port::sock, STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_interval(), and StreamConnection().
int pq_settcpusertimeout | ( | int | timeout, |
Port * | port | ||
) |
Definition at line 1970 of file pqcomm.c.
References SockAddr::addr, Port::default_tcp_user_timeout, ereport, errmsg(), IS_AF_UNIX, Port::laddr, LOG, pq_gettcpusertimeout(), Port::sock, STATUS_ERROR, STATUS_OK, and Port::tcp_user_timeout.
Referenced by assign_tcp_user_timeout(), and StreamConnection().
ProtocolVersion FrontendProtocol |
Definition at line 28 of file globals.c.
Referenced by BeginReportingGUCOptions(), CheckSCRAMAuth(), HandleFunctionRequest(), NotifyMyFrontEnd(), NullCommand(), pq_redirect_to_shm_mq(), printtup_startup(), process_postgres_switches(), ProcessStartupPacket(), ReadyForQuery(), ReceiveCopyBegin(), send_message_to_frontend(), SendCopyBegin(), SendFunctionResult(), SendRowDescriptionMessage(), SetRemoteDestReceiverParams(), socket_putmessage(), and SocketBackend().