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 * sslcertmode
 
char * sslrootcert
 
char * sslcrl
 
char * sslcrldir
 
char * sslsni
 
char * requirepeer
 
char * gssencmode
 
char * krbsrvname
 
char * gsslib
 
char * gssdelegation
 
char * ssl_min_protocol_version
 
char * ssl_max_protocol_version
 
char * target_session_attrs
 
char * require_auth
 
char * load_balance_hosts
 
bool cancelRequest
 
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 gssapi_used
 
bool sigpipe_so
 
bool sigpipe_flag
 
bool write_failed
 
char * write_err_msg
 
bool auth_required
 
uint32 allowed_auth_methods
 
bool client_finished_auth
 
PGTargetServerType target_server_type
 
PGLoadBalanceType load_balance_type
 
bool try_next_addr
 
bool try_next_host
 
int naddr
 
int whichaddr
 
AddrInfoaddr
 
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
 
pg_prng_state prng_state
 
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
 
int scram_sha_256_iterations
 
bool ssl_in_use
 
bool ssl_cert_requested
 
bool ssl_cert_sent
 
PQExpBufferData errorMessage
 
int errorReported
 
PQExpBufferData workBuffer
 

Detailed Description

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

Field Documentation

◆ addr

AddrInfo* pg_conn::addr

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

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

◆ allowed_auth_methods

uint32 pg_conn::allowed_auth_methods

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

Referenced by check_expected_areq(), and pqConnectOptions2().

◆ appname

char* pg_conn::appname

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

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

◆ auth_required

bool pg_conn::auth_required

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

Referenced by check_expected_areq(), and pqConnectOptions2().

◆ be_key

int pg_conn::be_key

◆ be_pid

int pg_conn::be_pid

◆ cancelRequest

bool pg_conn::cancelRequest

◆ channel_binding

char* pg_conn::channel_binding

◆ client_encoding

◆ client_encoding_initial

char* pg_conn::client_encoding_initial

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

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

◆ client_finished_auth

bool pg_conn::client_finished_auth

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

Referenced by check_expected_areq(), pg_fe_sendauth(), and pqDropServerData().

◆ cmd_queue_head

◆ cmd_queue_recycle

PGcmdQueueEntry* pg_conn::cmd_queue_recycle

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

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

◆ cmd_queue_tail

PGcmdQueueEntry* pg_conn::cmd_queue_tail

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

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

◆ connect_timeout

char* pg_conn::connect_timeout

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

Referenced by freePGconn(), and pqConnectDBComplete().

◆ connhost

◆ connip

char* pg_conn::connip

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

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

◆ copy_already_done

int pg_conn::copy_already_done

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

Referenced by pqGetlineAsync3(), and pqParseInput3().

◆ copy_is_binary

char pg_conn::copy_is_binary

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

Referenced by getCopyStart(), and pqGetline3().

◆ dbName

char* pg_conn::dbName

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

Referenced by build_startup_packet(), freePGconn(), pqConnectOptions2(), 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 622 of file libpq-int.h.

Referenced by pqPrepareAsyncResult(), and PQrequestCancel().

◆ eventArraySize

int pg_conn::eventArraySize

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

Referenced by PQregisterEventProc().

◆ events

◆ fbappname

char* pg_conn::fbappname

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

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

◆ gssapi_used

bool pg_conn::gssapi_used

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

Referenced by PQconnectionUsedGSSAPI(), pqDropServerData(), and pqsecure_open_gss().

◆ gssdelegation

char* pg_conn::gssdelegation

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

Referenced by freePGconn(), and pqsecure_open_gss().

◆ gssencmode

char* pg_conn::gssencmode

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

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

◆ gsslib

char* pg_conn::gsslib

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

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

◆ inCursor

◆ inEnd

◆ inStart

◆ keepalives

char* pg_conn::keepalives

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

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

◆ keepalives_count

char* pg_conn::keepalives_count

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

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

◆ keepalives_idle

char* pg_conn::keepalives_idle

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

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

◆ keepalives_interval

char* pg_conn::keepalives_interval

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

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

◆ krbsrvname

char* pg_conn::krbsrvname

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

Referenced by freePGconn(), and pg_GSS_load_servicename().

◆ laddr

SockAddr pg_conn::laddr

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

Referenced by PQconnectPoll().

◆ last_sqlstate

char pg_conn::last_sqlstate[6]

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

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

◆ load_balance_hosts

char* pg_conn::load_balance_hosts

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

Referenced by freePGconn(), and pqConnectOptions2().

◆ load_balance_type

PGLoadBalanceType pg_conn::load_balance_type

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

Referenced by pqConnectOptions2(), and PQconnectPoll().

◆ lobjfuncs

◆ naddr

int pg_conn::naddr

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

Referenced by PQconnectPoll(), and store_conn_addrinfo().

◆ nconnhost

int pg_conn::nconnhost

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

Referenced by pqConnectOptions2(), PQconnectPoll(), and pqReleaseConnHosts().

◆ nEvents

int pg_conn::nEvents

◆ next_result

PGresult* pg_conn::next_result

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

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

◆ nonblocking

bool pg_conn::nonblocking

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

Referenced by pqClosePGconn(), pqMakeEmptyPGconn(), and PQsetnonblocking().

◆ noticeHooks

◆ notifyHead

PGnotify* pg_conn::notifyHead

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

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

◆ notifyTail

PGnotify* pg_conn::notifyTail

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

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

◆ options_valid

bool pg_conn::options_valid

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

Referenced by internal_ping(), pqConnectDBStart(), pqConnectOptions2(), and pqMakeEmptyPGconn().

◆ outBuffer

char* pg_conn::outBuffer

◆ outBufSize

int pg_conn::outBufSize

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

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

◆ outCount

◆ outMsgEnd

int pg_conn::outMsgEnd

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

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

◆ outMsgStart

int pg_conn::outMsgStart

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

Referenced by pqPutMsgEnd(), and pqPutMsgStart().

◆ password_needed

◆ Pfdebug

◆ pghost

char* pg_conn::pghost

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

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

◆ pghostaddr

char* pg_conn::pghostaddr

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

Referenced by freePGconn(), and pqConnectOptions2().

◆ pgoptions

char* pg_conn::pgoptions

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

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

◆ pgport

char* pg_conn::pgport

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

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

◆ pgtcp_user_timeout

char* pg_conn::pgtcp_user_timeout

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

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

◆ pguser

char* pg_conn::pguser

◆ pipelineStatus

◆ prng_state

pg_prng_state pg_conn::prng_state

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

Referenced by libpq_prng_init(), pqConnectOptions2(), and PQconnectPoll().

◆ pstatus

pgParameterStatus* pg_conn::pstatus

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

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

◆ pversion

◆ raddr

◆ replication

char* pg_conn::replication

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

Referenced by build_startup_packet(), and freePGconn().

◆ require_auth

char* pg_conn::require_auth

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

Referenced by check_expected_areq(), freePGconn(), and pqConnectOptions2().

◆ requirepeer

char* pg_conn::requirepeer

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

Referenced by freePGconn(), and PQconnectPoll().

◆ result

◆ rowBuf

PGdataValue* pg_conn::rowBuf

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

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

◆ rowBufLen

int pg_conn::rowBufLen

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

Referenced by getAnotherTuple(), and pqMakeEmptyPGconn().

◆ sasl

const pg_fe_sasl_mech* pg_conn::sasl

Definition at line 546 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

◆ scram_sha_256_iterations

int pg_conn::scram_sha_256_iterations

◆ send_appname

bool pg_conn::send_appname

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

Referenced by build_startup_packet(), and PQconnectPoll().

◆ show_context

PGContextVisibility pg_conn::show_context

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

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

◆ sigpipe_flag

bool pg_conn::sigpipe_flag

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

Referenced by PQconnectPoll(), and pqsecure_raw_write().

◆ sigpipe_so

bool pg_conn::sigpipe_so

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

Referenced by PQconnectPoll().

◆ singleRowMode

bool pg_conn::singleRowMode

◆ sock

◆ ssl_cert_requested

bool pg_conn::ssl_cert_requested

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

Referenced by check_expected_areq().

◆ ssl_cert_sent

bool pg_conn::ssl_cert_sent

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

Referenced by check_expected_areq().

◆ ssl_in_use

◆ ssl_max_protocol_version

char* pg_conn::ssl_max_protocol_version

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

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

◆ ssl_min_protocol_version

char* pg_conn::ssl_min_protocol_version

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

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

◆ sslcert

char* pg_conn::sslcert

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslcertmode

char* pg_conn::sslcertmode

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

Referenced by check_expected_areq(), freePGconn(), initialize_SSL(), and pqConnectOptions2().

◆ sslcompression

char* pg_conn::sslcompression

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslcrl

char* pg_conn::sslcrl

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslcrldir

char* pg_conn::sslcrldir

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslkey

char* pg_conn::sslkey

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

Referenced by freePGconn(), and initialize_SSL().

◆ sslmode

char* pg_conn::sslmode

◆ sslpassword

char* pg_conn::sslpassword

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

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

◆ sslrootcert

char* pg_conn::sslrootcert

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

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

◆ sslsni

char* pg_conn::sslsni

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

Referenced by pqConnectDBStart(), pqConnectOptions2(), and PQconnectPoll().

◆ target_session_attrs

char* pg_conn::target_session_attrs

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

Referenced by freePGconn(), and pqConnectOptions2().

◆ traceFlags

int pg_conn::traceFlags

◆ try_next_addr

bool pg_conn::try_next_addr

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

Referenced by pqConnectDBComplete(), pqConnectDBStart(), and PQconnectPoll().

◆ try_next_host

bool pg_conn::try_next_host

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

Referenced by pqConnectDBStart(), and PQconnectPoll().

◆ verbosity

PGVerbosity pg_conn::verbosity

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

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

◆ whichaddr

int pg_conn::whichaddr

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

Referenced by pqConnectDBComplete(), PQconnectPoll(), and store_conn_addrinfo().

◆ whichhost

◆ workBuffer

◆ write_err_msg

char* pg_conn::write_err_msg

◆ write_failed

bool pg_conn::write_failed

Definition at line 474 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: