PostgreSQL Source Code  git master
pg_conn Struct Reference

#include <libpq-int.h>

Data Fields

char * pghost
 
char * pghostaddr
 
char * pgport
 
char * connect_timeout
 
char * pgtcp_user_timeout
 
char * client_encoding_initial
 
char * pgoptions
 
char * appname
 
char * fbappname
 
char * dbName
 
char * replication
 
char * pguser
 
char * pgpass
 
char * pgpassfile
 
char * channel_binding
 
char * keepalives
 
char * keepalives_idle
 
char * keepalives_interval
 
char * keepalives_count
 
char * sslmode
 
char * sslcompression
 
char * sslkey
 
char * sslcert
 
char * sslpassword
 
char * sslrootcert
 
char * sslcrl
 
char * sslcrldir
 
char * sslsni
 
char * requirepeer
 
char * gssencmode
 
char * krbsrvname
 
char * gsslib
 
char * ssl_min_protocol_version
 
char * ssl_max_protocol_version
 
char * target_session_attrs
 
FILE * Pfdebug
 
int traceFlags
 
PGNoticeHooks noticeHooks
 
PGEventevents
 
int nEvents
 
int eventArraySize
 
ConnStatusType status
 
PGAsyncStatusType asyncStatus
 
PGTransactionStatusType xactStatus
 
char last_sqlstate [6]
 
bool options_valid
 
bool nonblocking
 
PGpipelineStatus pipelineStatus
 
bool singleRowMode
 
char copy_is_binary
 
int copy_already_done
 
PGnotifynotifyHead
 
PGnotifynotifyTail
 
int nconnhost
 
int whichhost
 
pg_conn_hostconnhost
 
char * connip
 
PGcmdQueueEntrycmd_queue_head
 
PGcmdQueueEntrycmd_queue_tail
 
PGcmdQueueEntrycmd_queue_recycle
 
pgsocket sock
 
SockAddr laddr
 
SockAddr raddr
 
ProtocolVersion pversion
 
int sversion
 
bool auth_req_received
 
bool password_needed
 
bool sigpipe_so
 
bool sigpipe_flag
 
bool write_failed
 
char * write_err_msg
 
PGTargetServerType target_server_type
 
bool try_next_addr
 
bool try_next_host
 
struct addrinfo * addrlist
 
struct addrinfo * addr_cur
 
int addrlist_family
 
bool send_appname
 
int be_pid
 
int be_key
 
pgParameterStatuspstatus
 
int client_encoding
 
bool std_strings
 
PGTernaryBool default_transaction_read_only
 
PGTernaryBool in_hot_standby
 
PGVerbosity verbosity
 
PGContextVisibility show_context
 
PGlobjfuncslobjfuncs
 
char * inBuffer
 
int inBufSize
 
int inStart
 
int inCursor
 
int inEnd
 
char * outBuffer
 
int outBufSize
 
int outCount
 
int outMsgStart
 
int outMsgEnd
 
PGdataValuerowBuf
 
int rowBufLen
 
PGresultresult
 
bool error_result
 
PGresultnext_result
 
const pg_fe_sasl_mechsasl
 
void * sasl_state
 
bool ssl_in_use
 
PQExpBufferData errorMessage
 
int errorReported
 
PQExpBufferData workBuffer
 

Detailed Description

Definition at line 350 of file libpq-int.h.

Field Documentation

◆ addr_cur

struct addrinfo* pg_conn::addr_cur

Definition at line 465 of file libpq-int.h.

Referenced by connectDBComplete(), PQconnectPoll(), and release_conn_addrinfo().

◆ addrlist

struct addrinfo* pg_conn::addrlist

Definition at line 464 of file libpq-int.h.

Referenced by PQconnectPoll(), and release_conn_addrinfo().

◆ addrlist_family

int pg_conn::addrlist_family

Definition at line 466 of file libpq-int.h.

Referenced by PQconnectPoll(), and release_conn_addrinfo().

◆ appname

char* pg_conn::appname

Definition at line 367 of file libpq-int.h.

Referenced by build_startup_packet(), freePGconn(), and PQconnectPoll().

◆ asyncStatus

◆ auth_req_received

bool pg_conn::auth_req_received

Definition at line 453 of file libpq-int.h.

Referenced by internal_ping(), PQconnectPoll(), and pqDropServerData().

◆ be_key

int pg_conn::be_key

Definition at line 471 of file libpq-int.h.

Referenced by pqDropServerData(), PQgetCancel(), and pqParseInput3().

◆ be_pid

int pg_conn::be_pid

Definition at line 470 of file libpq-int.h.

Referenced by PQbackendPID(), pqDropServerData(), PQgetCancel(), and pqParseInput3().

◆ channel_binding

char* pg_conn::channel_binding

◆ client_encoding

◆ client_encoding_initial

char* pg_conn::client_encoding_initial

Definition at line 365 of file libpq-int.h.

Referenced by build_startup_packet(), connectOptions2(), and freePGconn().

◆ cmd_queue_head

◆ cmd_queue_recycle

PGcmdQueueEntry* pg_conn::cmd_queue_recycle

Definition at line 444 of file libpq-int.h.

Referenced by pqAllocCmdQueueEntry(), pqDropConnection(), and pqRecycleCmdQueueEntry().

◆ cmd_queue_tail

PGcmdQueueEntry* pg_conn::cmd_queue_tail

Definition at line 438 of file libpq-int.h.

Referenced by pqAppendCmdQueueEntry(), pqCommandQueueAdvance(), and pqDropConnection().

◆ connect_timeout

char* pg_conn::connect_timeout

Definition at line 363 of file libpq-int.h.

Referenced by connectDBComplete(), and freePGconn().

◆ connhost

◆ connip

char* pg_conn::connip

Definition at line 431 of file libpq-int.h.

Referenced by freePGconn(), PQconnectPoll(), and PQhostaddr().

◆ copy_already_done

int pg_conn::copy_already_done

Definition at line 423 of file libpq-int.h.

Referenced by pqGetlineAsync3(), and pqParseInput3().

◆ copy_is_binary

char pg_conn::copy_is_binary

Definition at line 422 of file libpq-int.h.

Referenced by getCopyStart(), and pqGetline3().

◆ dbName

char* pg_conn::dbName

Definition at line 369 of file libpq-int.h.

Referenced by build_startup_packet(), connectOptions2(), freePGconn(), PQdb(), and PQsetdbLogin().

◆ default_transaction_read_only

PGTernaryBool pg_conn::default_transaction_read_only

◆ error_result

bool pg_conn::error_result

◆ errorMessage

◆ errorReported

int pg_conn::errorReported

Definition at line 589 of file libpq-int.h.

Referenced by pqPrepareAsyncResult(), and PQrequestCancel().

◆ eventArraySize

int pg_conn::eventArraySize

Definition at line 410 of file libpq-int.h.

Referenced by PQregisterEventProc().

◆ events

◆ fbappname

char* pg_conn::fbappname

Definition at line 368 of file libpq-int.h.

Referenced by build_startup_packet(), freePGconn(), and PQconnectPoll().

◆ gssencmode

char* pg_conn::gssencmode

Definition at line 392 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), and PQconnectPoll().

◆ gsslib

char* pg_conn::gsslib

Definition at line 394 of file libpq-int.h.

Referenced by freePGconn(), and pg_fe_sendauth().

◆ in_hot_standby

PGTernaryBool pg_conn::in_hot_standby

◆ inBuffer

◆ inBufSize

int pg_conn::inBufSize

Definition at line 483 of file libpq-int.h.

Referenced by makeEmptyPGconn(), pqCheckInBufferSpace(), and pqReadData().

◆ inCursor

◆ inEnd

◆ inStart

◆ keepalives

char* pg_conn::keepalives

Definition at line 376 of file libpq-int.h.

Referenced by freePGconn(), PQgetCancel(), and useKeepalives().

◆ keepalives_count

char* pg_conn::keepalives_count

Definition at line 380 of file libpq-int.h.

Referenced by freePGconn(), PQgetCancel(), and setKeepalivesCount().

◆ keepalives_idle

char* pg_conn::keepalives_idle

Definition at line 377 of file libpq-int.h.

Referenced by freePGconn(), PQgetCancel(), and setKeepalivesIdle().

◆ keepalives_interval

char* pg_conn::keepalives_interval

Definition at line 378 of file libpq-int.h.

Referenced by freePGconn(), PQgetCancel(), and setKeepalivesInterval().

◆ krbsrvname

char* pg_conn::krbsrvname

Definition at line 393 of file libpq-int.h.

Referenced by freePGconn(), and pg_GSS_load_servicename().

◆ laddr

SockAddr pg_conn::laddr

Definition at line 449 of file libpq-int.h.

Referenced by PQconnectPoll().

◆ last_sqlstate

char pg_conn::last_sqlstate[6]

Definition at line 416 of file libpq-int.h.

Referenced by internal_ping(), PQconnectPoll(), pqDropServerData(), and pqGetErrorNotice3().

◆ lobjfuncs

◆ nconnhost

int pg_conn::nconnhost

Definition at line 428 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), and PQconnectPoll().

◆ nEvents

int pg_conn::nEvents

◆ next_result

PGresult* pg_conn::next_result

Definition at line 513 of file libpq-int.h.

Referenced by pqClearAsyncResult(), pqPrepareAsyncResult(), and pqRowProcessor().

◆ nonblocking

bool pg_conn::nonblocking

Definition at line 418 of file libpq-int.h.

Referenced by closePGconn(), makeEmptyPGconn(), and PQsetnonblocking().

◆ noticeHooks

◆ notifyHead

PGnotify* pg_conn::notifyHead

Definition at line 424 of file libpq-int.h.

Referenced by getNotify(), pqDropServerData(), and PQnotifies().

◆ notifyTail

PGnotify* pg_conn::notifyTail

Definition at line 425 of file libpq-int.h.

Referenced by getNotify(), pqDropServerData(), and PQnotifies().

◆ options_valid

bool pg_conn::options_valid

Definition at line 417 of file libpq-int.h.

Referenced by connectDBStart(), connectOptions2(), internal_ping(), and makeEmptyPGconn().

◆ outBuffer

char* pg_conn::outBuffer

◆ outBufSize

int pg_conn::outBufSize

Definition at line 490 of file libpq-int.h.

Referenced by makeEmptyPGconn(), pqCheckOutBufferSpace(), and PQputCopyData().

◆ outCount

int pg_conn::outCount

◆ outMsgEnd

int pg_conn::outMsgEnd

Definition at line 496 of file libpq-int.h.

Referenced by pqPutMsgBytes(), pqPutMsgEnd(), and pqPutMsgStart().

◆ outMsgStart

int pg_conn::outMsgStart

Definition at line 494 of file libpq-int.h.

Referenced by pqPutMsgEnd(), and pqPutMsgStart().

◆ password_needed

◆ Pfdebug

◆ pghost

char* pg_conn::pghost

Definition at line 353 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), and PQsetdbLogin().

◆ pghostaddr

char* pg_conn::pghostaddr

Definition at line 357 of file libpq-int.h.

Referenced by connectOptions2(), and freePGconn().

◆ pgoptions

char* pg_conn::pgoptions

Definition at line 366 of file libpq-int.h.

Referenced by build_startup_packet(), freePGconn(), PQoptions(), and PQsetdbLogin().

◆ pgpass

char* pg_conn::pgpass

◆ pgpassfile

char* pg_conn::pgpassfile

Definition at line 373 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), and pgpassfileWarning().

◆ pgport

char* pg_conn::pgport

Definition at line 361 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), and PQsetdbLogin().

◆ pgtcp_user_timeout

char* pg_conn::pgtcp_user_timeout

Definition at line 364 of file libpq-int.h.

Referenced by freePGconn(), PQgetCancel(), and setTCPUserTimeout().

◆ pguser

char* pg_conn::pguser

◆ pipelineStatus

◆ pstatus

pgParameterStatus* pg_conn::pstatus

Definition at line 472 of file libpq-int.h.

Referenced by pqDropServerData(), PQparameterStatus(), and pqSaveParameterStatus().

◆ pversion

◆ raddr

SockAddr pg_conn::raddr

◆ replication

char* pg_conn::replication

Definition at line 370 of file libpq-int.h.

Referenced by build_startup_packet(), and freePGconn().

◆ requirepeer

char* pg_conn::requirepeer

Definition at line 391 of file libpq-int.h.

Referenced by freePGconn(), and PQconnectPoll().

◆ result

◆ rowBuf

PGdataValue* pg_conn::rowBuf

Definition at line 499 of file libpq-int.h.

Referenced by freePGconn(), getAnotherTuple(), makeEmptyPGconn(), and pqRowProcessor().

◆ rowBufLen

int pg_conn::rowBufLen

Definition at line 500 of file libpq-int.h.

Referenced by getAnotherTuple(), and makeEmptyPGconn().

◆ sasl

const pg_fe_sasl_mech* pg_conn::sasl

Definition at line 516 of file libpq-int.h.

Referenced by check_expected_areq(), pg_SASL_continue(), pg_SASL_init(), and pqDropConnection().

◆ sasl_state

void* pg_conn::sasl_state

◆ send_appname

bool pg_conn::send_appname

Definition at line 467 of file libpq-int.h.

Referenced by build_startup_packet(), and PQconnectPoll().

◆ show_context

PGContextVisibility pg_conn::show_context

Definition at line 478 of file libpq-int.h.

Referenced by makeEmptyPGconn(), pqGetErrorNotice3(), and PQsetErrorContextVisibility().

◆ sigpipe_flag

bool pg_conn::sigpipe_flag

Definition at line 456 of file libpq-int.h.

Referenced by PQconnectPoll(), and pqsecure_raw_write().

◆ sigpipe_so

bool pg_conn::sigpipe_so

Definition at line 455 of file libpq-int.h.

Referenced by PQconnectPoll().

◆ singleRowMode

bool pg_conn::singleRowMode

◆ sock

◆ ssl_in_use

◆ ssl_max_protocol_version

char* pg_conn::ssl_max_protocol_version

Definition at line 397 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), initialize_SSL(), and open_client_SSL().

◆ ssl_min_protocol_version

char* pg_conn::ssl_min_protocol_version

Definition at line 396 of file libpq-int.h.

Referenced by connectOptions2(), freePGconn(), initialize_SSL(), and open_client_SSL().

◆ sslcert

char* pg_conn::sslcert

Definition at line 385 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslcompression

char* pg_conn::sslcompression

Definition at line 383 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslcrl

char* pg_conn::sslcrl

Definition at line 388 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslcrldir

char* pg_conn::sslcrldir

Definition at line 389 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslkey

char* pg_conn::sslkey

Definition at line 384 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslmode

char* pg_conn::sslmode

◆ sslpassword

char* pg_conn::sslpassword

Definition at line 386 of file libpq-int.h.

Referenced by freePGconn(), initialize_SSL(), and PQdefaultSSLKeyPassHook_OpenSSL().

◆ sslrootcert

char* pg_conn::sslrootcert

Definition at line 387 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ sslsni

char* pg_conn::sslsni

Definition at line 390 of file libpq-int.h.

Referenced by freePGconn(), and initialize_SSL().

◆ status

◆ std_strings

bool pg_conn::std_strings

◆ sversion

int pg_conn::sversion

◆ target_server_type

PGTargetServerType pg_conn::target_server_type

Definition at line 461 of file libpq-int.h.

Referenced by connectDBStart(), connectOptions2(), and PQconnectPoll().

◆ target_session_attrs

char* pg_conn::target_session_attrs

Definition at line 398 of file libpq-int.h.

Referenced by connectOptions2(), and freePGconn().

◆ traceFlags

int pg_conn::traceFlags

◆ try_next_addr

bool pg_conn::try_next_addr

Definition at line 462 of file libpq-int.h.

Referenced by connectDBComplete(), connectDBStart(), and PQconnectPoll().

◆ try_next_host

bool pg_conn::try_next_host

Definition at line 463 of file libpq-int.h.

Referenced by connectDBStart(), and PQconnectPoll().

◆ verbosity

PGVerbosity pg_conn::verbosity

Definition at line 477 of file libpq-int.h.

Referenced by makeEmptyPGconn(), pqGetErrorNotice3(), and PQsetErrorVerbosity().

◆ whichhost

◆ workBuffer

◆ write_err_msg

char* pg_conn::write_err_msg

◆ write_failed

bool pg_conn::write_failed

Definition at line 457 of file libpq-int.h.

Referenced by pqDropServerData(), PQgetResult(), pqsecure_raw_write(), and pqSendSome().

◆ xactStatus


The documentation for this struct was generated from the following file: