PostgreSQL Source Code
git master
|
#include <sys/time.h>
#include <netinet/tcp.h>
#include "datatype/timestamp.h"
#include "libpq/hba.h"
#include "libpq/pqcomm.h"
Go to the source code of this file.
Data Structures | |
struct | ClientConnectionInfo |
struct | Port |
Typedefs | |
typedef enum CAC_state | CAC_state |
typedef struct ClientConnectionInfo | ClientConnectionInfo |
typedef struct Port | Port |
Enumerations | |
enum | CAC_state { CAC_OK , CAC_STARTUP , CAC_SHUTDOWN , CAC_RECOVERY , CAC_NOTCONSISTENT , CAC_TOOMANY } |
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 | |
PGDLLIMPORT ProtocolVersion | FrontendProtocol |
PGDLLIMPORT ClientConnectionInfo | MyClientConnectionInfo |
typedef struct ClientConnectionInfo ClientConnectionInfo |
enum CAC_state |
Enumerator | |
---|---|
CAC_OK | |
CAC_STARTUP | |
CAC_SHUTDOWN | |
CAC_RECOVERY | |
CAC_NOTCONSISTENT | |
CAC_TOOMANY |
Definition at line 61 of file libpq-be.h.
int pq_getkeepalivescount | ( | Port * | port | ) |
Definition at line 1778 of file pqcomm.c.
References ereport, errmsg(), LOG, and port.
Referenced by pq_setkeepalivescount(), and show_tcp_keepalives_count().
int pq_getkeepalivesidle | ( | Port * | port | ) |
Definition at line 1609 of file pqcomm.c.
References ereport, errmsg(), LOG, and port.
Referenced by pq_setkeepalivesidle(), and show_tcp_keepalives_idle().
int pq_getkeepalivesinterval | ( | Port * | port | ) |
Definition at line 1694 of file pqcomm.c.
References ereport, errmsg(), LOG, and port.
Referenced by pq_setkeepalivesinterval(), and show_tcp_keepalives_interval().
int pq_gettcpusertimeout | ( | Port * | port | ) |
Definition at line 1853 of file pqcomm.c.
References ereport, errmsg(), LOG, and port.
Referenced by pq_settcpusertimeout(), and show_tcp_user_timeout().
int pq_setkeepalivescount | ( | int | count, |
Port * | port | ||
) |
Definition at line 1808 of file pqcomm.c.
References ereport, errmsg(), LOG, port, pq_getkeepalivescount(), STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_count(), and StreamConnection().
int pq_setkeepalivesidle | ( | int | idle, |
Port * | port | ||
) |
Definition at line 1644 of file pqcomm.c.
References ereport, errmsg(), LOG, port, pq_getkeepalivesidle(), STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_idle(), and StreamConnection().
int pq_setkeepalivesinterval | ( | int | interval, |
Port * | port | ||
) |
Definition at line 1729 of file pqcomm.c.
References ereport, errmsg(), LOG, port, pq_getkeepalivesinterval(), STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_keepalives_interval(), and StreamConnection().
int pq_settcpusertimeout | ( | int | timeout, |
Port * | port | ||
) |
Definition at line 1883 of file pqcomm.c.
References ereport, errmsg(), LOG, port, pq_gettcpusertimeout(), STATUS_ERROR, and STATUS_OK.
Referenced by assign_tcp_user_timeout(), and StreamConnection().
|
extern |
Definition at line 28 of file globals.c.
Referenced by pq_redirect_to_shm_mq(), process_postgres_switches(), ProcessStartupPacket(), and send_message_to_frontend().
|
extern |
Definition at line 996 of file miscinit.c.
Referenced by auth_peer(), ClientAuthentication(), EstimateClientConnectionInfoSpace(), InitPostgres(), ParallelWorkerMain(), RestoreClientConnectionInfo(), SerializeClientConnectionInfo(), and set_authn_id().