PostgreSQL Source Code  git master
pg_conn Struct Reference

#include <libpq-int.h>

Data Fields

char * pghost
 
char * pghostaddr
 
char * pgport
 
char * pgtty
 
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 * sslrootcert
 
char * sslcrl
 
char * requirepeer
 
char * target_session_attrs
 
FILE * Pfdebug
 
PGNoticeHooks noticeHooks
 
PGEventevents
 
int nEvents
 
int eventArraySize
 
ConnStatusType status
 
PGAsyncStatusType asyncStatus
 
PGTransactionStatusType xactStatus
 
PGQueryClass queryclass
 
char * last_query
 
char last_sqlstate [6]
 
bool options_valid
 
bool nonblocking
 
bool singleRowMode
 
char copy_is_binary
 
int copy_already_done
 
PGnotifynotifyHead
 
PGnotifynotifyTail
 
int nconnhost
 
int whichhost
 
pg_conn_hostconnhost
 
char * connip
 
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
 
bool try_next_addr
 
bool try_next_host
 
struct addrinfoaddrlist
 
struct addrinfoaddr_cur
 
int addrlist_family
 
PGSetenvStatusType setenv_state
 
const PQEnvironmentOptionnext_eo
 
bool send_appname
 
int be_pid
 
int be_key
 
pgParameterStatuspstatus
 
int client_encoding
 
bool std_strings
 
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
 
PGresultnext_result
 
void * sasl_state
 
bool ssl_in_use
 
char * gssencmode
 
PQExpBufferData errorMessage
 
PQExpBufferData workBuffer
 

Detailed Description

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

Field Documentation

◆ addr_cur

struct addrinfo* pg_conn::addr_cur

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

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

◆ addrlist

struct addrinfo* pg_conn::addrlist

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

Referenced by PQconnectPoll(), and release_conn_addrinfo().

◆ addrlist_family

int pg_conn::addrlist_family

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

Referenced by PQconnectPoll(), and release_conn_addrinfo().

◆ appname

char* pg_conn::appname

Definition at line 343 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 413 of file libpq-int.h.

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

◆ be_key

int pg_conn::be_key

◆ be_pid

int pg_conn::be_pid

◆ channel_binding

char* pg_conn::channel_binding

◆ client_encoding

◆ client_encoding_initial

char* pg_conn::client_encoding_initial

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

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

◆ connect_timeout

char* pg_conn::connect_timeout

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

Referenced by connectDBComplete(), and freePGconn().

◆ connhost

◆ connip

char* pg_conn::connip

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

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

◆ copy_already_done

int pg_conn::copy_already_done

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

Referenced by pqGetlineAsync3(), and pqParseInput3().

◆ copy_is_binary

char pg_conn::copy_is_binary

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

Referenced by getCopyStart(), and pqGetline3().

◆ dbName

char* pg_conn::dbName

◆ errorMessage

PQExpBufferData pg_conn::errorMessage

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

Referenced by build_client_final_message(), build_client_first_message(), check_expected_areq(), closePGconn(), connectDBComplete(), connectDBStart(), connectFailureMessage(), connectNoDelay(), connectOptions1(), connectOptions2(), fillPGconn(), freePGconn(), getAnotherTuple(), getParamDescriptions(), getRowDescriptions(), handleSyncLoss(), initialize_SSL(), lo_create(), lo_export(), lo_import_internal(), lo_initialize(), lo_lseek64(), lo_read(), lo_tell64(), lo_truncate(), lo_truncate64(), lo_write(), makeEmptyPGconn(), open_client_SSL(), openssl_verify_peer_name_matches_certificate_name(), parse_int_param(), pg_fe_scram_exchange(), pg_fe_sendauth(), pg_GSS_error(), pg_GSS_load_servicename(), pg_GSS_read(), pg_GSS_write(), pg_local_sendauth(), pg_password_sendauth(), pg_SASL_continue(), pg_SASL_init(), pgpassfileWarning(), pgtls_read(), pgtls_write(), pq_verify_peer_name_matches_certificate(), pq_verify_peer_name_matches_certificate_name(), pqCheckInBufferSpace(), pqCheckOutBufferSpace(), PQconnectPoll(), PQconnectStartParams(), PQencryptPasswordConn(), pqEndcopy2(), pqEndcopy3(), PQerrorMessage(), PQescapeByteaInternal(), PQescapeInternal(), PQescapeStringInternal(), PQexecFinish(), PQexecStart(), PQfn(), pqFunctionCall2(), pqFunctionCall3(), PQgetCopyData(), pqGetCopyData2(), pqGetCopyData3(), pqGetErrorNotice2(), pqGetErrorNotice3(), pqGetline3(), PQgetResult(), PQmakeEmptyPGresult(), pqParseInput2(), pqParseInput3(), pqPrepareAsyncResult(), PQputCopyData(), PQputCopyEnd(), pqReadData(), PQrequestCancel(), PQreset(), PQresetPoll(), pqSaveErrorResult(), pqsecure_open_gss(), pqsecure_raw_read(), pqsecure_raw_write(), PQsendDescribe(), PQsendPrepare(), PQsendQuery(), PQsendQueryGuts(), PQsendQueryParams(), PQsendQueryPrepared(), PQsendQueryStart(), pqSendSome(), PQsetdbLogin(), pqSetenvPoll(), pqSocketCheck(), pqWaitTimed(), read_server_final_message(), read_server_first_message(), restoreErrorMessage(), saveErrorMessage(), setKeepalivesCount(), setKeepalivesIdle(), setKeepalivesInterval(), and setTCPUserTimeout().

◆ eventArraySize

int pg_conn::eventArraySize

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

Referenced by PQregisterEventProc().

◆ events

◆ fbappname

char* pg_conn::fbappname

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

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

◆ gssencmode

char* pg_conn::gssencmode

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

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

◆ inBuffer

◆ inBufSize

int pg_conn::inBufSize

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

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

◆ inCursor

◆ inEnd

◆ inStart

◆ keepalives

char* pg_conn::keepalives

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

Referenced by freePGconn(), and useKeepalives().

◆ keepalives_count

char* pg_conn::keepalives_count

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

Referenced by freePGconn(), and setKeepalivesCount().

◆ keepalives_idle

char* pg_conn::keepalives_idle

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

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

◆ keepalives_interval

char* pg_conn::keepalives_interval

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

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

◆ laddr

SockAddr pg_conn::laddr

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

Referenced by PQconnectPoll().

◆ last_query

char* pg_conn::last_query

◆ last_sqlstate

char pg_conn::last_sqlstate[6]

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

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

◆ lobjfuncs

◆ nconnhost

int pg_conn::nconnhost

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

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

◆ nEvents

int pg_conn::nEvents

◆ next_eo

const PQEnvironmentOption* pg_conn::next_eo

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

Referenced by PQconnectPoll(), and pqSetenvPoll().

◆ next_result

PGresult* pg_conn::next_result

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

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

◆ nonblocking

bool pg_conn::nonblocking

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

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

◆ noticeHooks

◆ notifyHead

PGnotify* pg_conn::notifyHead

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

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

◆ notifyTail

PGnotify* pg_conn::notifyTail

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

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

◆ options_valid

bool pg_conn::options_valid

Definition at line 391 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 449 of file libpq-int.h.

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

◆ outCount

int pg_conn::outCount

◆ outMsgEnd

int pg_conn::outMsgEnd

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

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

◆ outMsgStart

int pg_conn::outMsgStart

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

Referenced by pqPutMsgEnd(), and pqPutMsgStart().

◆ password_needed

◆ Pfdebug

◆ pghost

char* pg_conn::pghost

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

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

◆ pghostaddr

char* pg_conn::pghostaddr

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

Referenced by connectOptions2(), and freePGconn().

◆ pgoptions

char* pg_conn::pgoptions

◆ pgpass

char* pg_conn::pgpass

◆ pgpassfile

char* pg_conn::pgpassfile

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

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

◆ pgport

char* pg_conn::pgport

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

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

◆ pgtcp_user_timeout

char* pg_conn::pgtcp_user_timeout

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

Referenced by freePGconn(), and setTCPUserTimeout().

◆ pgtty

char* pg_conn::pgtty

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

Referenced by freePGconn(), pqBuildStartupPacket2(), PQsetdbLogin(), and PQtty().

◆ pguser

◆ pstatus

pgParameterStatus* pg_conn::pstatus

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

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

◆ pversion

◆ queryclass

◆ raddr

SockAddr pg_conn::raddr

◆ replication

char* pg_conn::replication

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

Referenced by build_startup_packet(), and freePGconn().

◆ requirepeer

char* pg_conn::requirepeer

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

Referenced by freePGconn(), and PQconnectPoll().

◆ result

◆ rowBuf

PGdataValue* pg_conn::rowBuf

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

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

◆ rowBufLen

int pg_conn::rowBufLen

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

Referenced by getAnotherTuple(), and makeEmptyPGconn().

◆ sasl_state

void* pg_conn::sasl_state

◆ send_appname

bool pg_conn::send_appname

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

Referenced by build_startup_packet(), and PQconnectPoll().

◆ setenv_state

PGSetenvStatusType pg_conn::setenv_state

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

Referenced by makeEmptyPGconn(), PQconnectPoll(), and pqSetenvPoll().

◆ show_context

PGContextVisibility pg_conn::show_context

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

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

◆ sigpipe_flag

bool pg_conn::sigpipe_flag

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

Referenced by PQconnectPoll(), and pqsecure_raw_write().

◆ sigpipe_so

bool pg_conn::sigpipe_so

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

Referenced by PQconnectPoll().

◆ singleRowMode

bool pg_conn::singleRowMode

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

Referenced by pqRowProcessor(), PQsendQueryStart(), and PQsetSingleRowMode().

◆ sock

◆ ssl_in_use

◆ sslcert

char* pg_conn::sslcert

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslcompression

char* pg_conn::sslcompression

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslcrl

char* pg_conn::sslcrl

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslkey

char* pg_conn::sslkey

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslmode

char* pg_conn::sslmode

◆ sslrootcert

char* pg_conn::sslrootcert

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

Referenced by freePGconn(), and initialize_SSL().

◆ status

◆ std_strings

bool pg_conn::std_strings

◆ sversion

◆ target_session_attrs

char* pg_conn::target_session_attrs

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

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

◆ try_next_addr

bool pg_conn::try_next_addr

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

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

◆ try_next_host

bool pg_conn::try_next_host

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

Referenced by connectDBStart(), and PQconnectPoll().

◆ verbosity

PGVerbosity pg_conn::verbosity

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

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

◆ whichhost

◆ workBuffer

◆ write_err_msg

char* pg_conn::write_err_msg

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

Referenced by freePGconn(), pqDropServerData(), pqSaveWriteError(), and pqSendSome().

◆ write_failed

bool pg_conn::write_failed

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

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

◆ xactStatus


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