|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | pgNotify |
| struct | _PQprintOpt |
| struct | _PQconninfoOption |
| struct | PQArgBlock |
| struct | pgresAttDesc |
| struct | _PGpromptOAuthDevice |
| struct | PGoauthBearerRequest |
Macros | |
| #define | LIBPQ_HAS_PIPELINING 1 |
| #define | LIBPQ_HAS_TRACE_FLAGS 1 |
| #define | LIBPQ_HAS_SSL_LIBRARY_DETECTION 1 |
| #define | LIBPQ_HAS_ASYNC_CANCEL 1 |
| #define | LIBPQ_HAS_CHANGE_PASSWORD 1 |
| #define | LIBPQ_HAS_CHUNK_MODE 1 |
| #define | LIBPQ_HAS_CLOSE_PREPARED 1 |
| #define | LIBPQ_HAS_SEND_PIPELINE_SYNC 1 |
| #define | LIBPQ_HAS_SOCKET_POLL 1 |
| #define | LIBPQ_HAS_FULL_PROTOCOL_VERSION 1 |
| #define | LIBPQ_HAS_PROMPT_OAUTH_DEVICE 1 |
| #define | PG_COPYRES_ATTRS 0x01 |
| #define | PG_COPYRES_TUPLES 0x02 /* Implies PG_COPYRES_ATTRS */ |
| #define | PG_COPYRES_EVENTS 0x04 |
| #define | PG_COPYRES_NOTICEHOOKS 0x08 |
| #define | PQsetdb(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME) PQsetdbLogin(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME, NULL, NULL) |
| #define | PQTRACE_SUPPRESS_TIMESTAMPS (1<<0) |
| #define | PQTRACE_REGRESS_MODE (1<<1) |
| #define | PQ_QUERY_PARAM_MAX_LIMIT 65535 |
| #define | PQfreeNotify(ptr) PQfreemem(ptr) |
| #define | PQnoPasswordSupplied "fe_sendauth: no password supplied\n" |
| #define | PQ_SOCKTYPE int |
| #define LIBPQ_HAS_ASYNC_CANCEL 1 |
Definition at line 48 of file libpq-fe.h.
| #define LIBPQ_HAS_CHANGE_PASSWORD 1 |
Definition at line 50 of file libpq-fe.h.
| #define LIBPQ_HAS_CHUNK_MODE 1 |
Definition at line 52 of file libpq-fe.h.
| #define LIBPQ_HAS_CLOSE_PREPARED 1 |
Definition at line 54 of file libpq-fe.h.
| #define LIBPQ_HAS_FULL_PROTOCOL_VERSION 1 |
Definition at line 62 of file libpq-fe.h.
| #define LIBPQ_HAS_PIPELINING 1 |
Definition at line 38 of file libpq-fe.h.
| #define LIBPQ_HAS_PROMPT_OAUTH_DEVICE 1 |
Definition at line 64 of file libpq-fe.h.
| #define LIBPQ_HAS_SEND_PIPELINE_SYNC 1 |
Definition at line 56 of file libpq-fe.h.
| #define LIBPQ_HAS_SOCKET_POLL 1 |
Definition at line 58 of file libpq-fe.h.
| #define LIBPQ_HAS_SSL_LIBRARY_DETECTION 1 |
Definition at line 44 of file libpq-fe.h.
| #define LIBPQ_HAS_TRACE_FLAGS 1 |
Definition at line 40 of file libpq-fe.h.
| #define PG_COPYRES_ATTRS 0x01 |
Definition at line 69 of file libpq-fe.h.
| #define PG_COPYRES_EVENTS 0x04 |
Definition at line 71 of file libpq-fe.h.
| #define PG_COPYRES_NOTICEHOOKS 0x08 |
Definition at line 72 of file libpq-fe.h.
| #define PG_COPYRES_TUPLES 0x02 /* Implies PG_COPYRES_ATTRS */ |
Definition at line 70 of file libpq-fe.h.
| #define PQ_QUERY_PARAM_MAX_LIMIT 65535 |
Definition at line 507 of file libpq-fe.h.
Definition at line 749 of file libpq-fe.h.
Definition at line 629 of file libpq-fe.h.
| #define PQnoPasswordSupplied "fe_sendauth: no password supplied\n" |
Definition at line 633 of file libpq-fe.h.
| #define PQsetdb | ( | M_PGHOST, | |
| M_PGPORT, | |||
| M_PGOPT, | |||
| M_PGTTY, | |||
| M_DBNAME | |||
| ) | PQsetdbLogin(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME, NULL, NULL) |
Definition at line 339 of file libpq-fe.h.
| #define PQTRACE_REGRESS_MODE (1<<1) |
Definition at line 480 of file libpq-fe.h.
| #define PQTRACE_SUPPRESS_TIMESTAMPS (1<<0) |
Definition at line 478 of file libpq-fe.h.
Definition at line 238 of file libpq-fe.h.
Definition at line 207 of file libpq-fe.h.
Definition at line 814 of file libpq-fe.h.
Definition at line 245 of file libpq-fe.h.
Definition at line 242 of file libpq-fe.h.
Definition at line 241 of file libpq-fe.h.
Definition at line 828 of file libpq-fe.h.
Definition at line 82 of file libpq-fe.h.
Definition at line 122 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQAUTHDATA_PROMPT_OAUTH_DEVICE | |
| PQAUTHDATA_OAUTH_BEARER_TOKEN | |
Definition at line 192 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQSHOW_CONTEXT_NEVER | |
| PQSHOW_CONTEXT_ERRORS | |
| PQSHOW_CONTEXT_ALWAYS | |
Definition at line 162 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQPING_OK | |
| PQPING_REJECT | |
| PQPING_NO_RESPONSE | |
| PQPING_NO_ATTEMPT | |
Definition at line 174 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQ_PIPELINE_OFF | |
| PQ_PIPELINE_ON | |
| PQ_PIPELINE_ABORTED | |
Definition at line 185 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQTRANS_IDLE | |
| PQTRANS_ACTIVE | |
| PQTRANS_INTRANS | |
| PQTRANS_INERROR | |
| PQTRANS_UNKNOWN | |
Definition at line 145 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PQERRORS_TERSE | |
| PQERRORS_DEFAULT | |
| PQERRORS_VERBOSE | |
| PQERRORS_SQLSTATE | |
Definition at line 154 of file libpq-fe.h.
| Enumerator | |
|---|---|
| PGRES_POLLING_FAILED | |
| PGRES_POLLING_READING | |
| PGRES_POLLING_WRITING | |
| PGRES_POLLING_OK | |
| PGRES_POLLING_ACTIVE | |
Definition at line 113 of file libpq-fe.h.
Definition at line 96 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_close, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by dumpLOs(), EndRestoreLO(), exportFile(), exportFile(), importFile(), importFile(), lo_export(), lo_import_internal(), my_truncate(), overwrite(), overwrite(), pickout(), and pickout().
Definition at line 438 of file fe-lobj.c.
References conn, fb(), pgLobjfuncs::fn_lo_creat, PQArgBlock::integer, InvalidOid, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, mode, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by importFile(), importFile(), and lo_import_internal().
Definition at line 474 of file fe-lobj.c.
References conn, fb(), pgLobjfuncs::fn_lo_create, PQArgBlock::integer, InvalidOid, PQArgBlock::isint, PQArgBlock::len, libpq_append_conn_error(), lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by lo_import_internal(), and StartRestoreLO().
Definition at line 748 of file fe-lobj.c.
References buf, close, conn, fb(), fd(), filename, INV_READ, libpq_append_conn_error(), LO_BUFSIZE, lo_close(), lo_open(), lo_read(), PG_BINARY, PG_STRERROR_R_BUFLEN, pqClearConnErrorState, strerror_r, and write.
Referenced by do_lo_export(), and main().
Definition at line 626 of file fe-lobj.c.
References conn, filename, InvalidOid, and lo_import_internal().
Referenced by do_lo_import(), and main().
Definition at line 344 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_lseek, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by overwrite(), and pickout().
Definition at line 385 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_lseek64, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, libpq_append_conn_error(), lo_hton64(), lo_initialize(), lo_ntoh64(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, PQArgBlock::ptr, and PQArgBlock::u.
Referenced by overwrite(), and pickout().
Definition at line 57 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_open, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, mode, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by dumpLOs(), exportFile(), exportFile(), importFile(), importFile(), lo_export(), lo_import_internal(), my_truncate(), overwrite(), overwrite(), pickout(), pickout(), and StartRestoreLO().
Definition at line 245 of file fe-lobj.c.
References buf, conn, fb(), fd(), pgLobjfuncs::fn_lo_read, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, len, libpq_append_conn_error(), lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by lo_export().
Definition at line 515 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_tell, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Definition at line 548 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_tell64, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, libpq_append_conn_error(), lo_initialize(), lo_ntoh64(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by pickout().
Definition at line 131 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_truncate, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, len, libpq_append_conn_error(), lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Definition at line 195 of file fe-lobj.c.
References conn, fb(), fd(), pgLobjfuncs::fn_lo_truncate64, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, len, libpq_append_conn_error(), lo_hton64(), lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, PQArgBlock::ptr, and PQArgBlock::u.
Referenced by my_truncate().
Definition at line 589 of file fe-lobj.c.
References conn, fb(), pgLobjfuncs::fn_lo_unlink, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, and PQArgBlock::u.
Referenced by do_lo_unlink(), and vacuumlo().
Definition at line 295 of file fe-lobj.c.
References buf, conn, fb(), fd(), pgLobjfuncs::fn_lo_write, PQArgBlock::integer, PQArgBlock::isint, PQArgBlock::len, len, libpq_append_conn_error(), lo_initialize(), pg_conn::lobjfuncs, PGRES_COMMAND_OK, PQclear, PQfn(), PQresultStatus, PQArgBlock::ptr, PQArgBlock::u, and unconstify.
Referenced by lo_import_internal().
Definition at line 549 of file encnames.c.
References clean_encoding_name(), fb(), lengthof, name, NAMEDATALEN, and pg_encname_tbl.
Definition at line 587 of file encnames.c.
References Assert, encoding, pg_enc2name::encoding, pg_enc2name::name, pg_enc2name_tbl, and PG_VALID_ENCODING.
Definition at line 7740 of file fe-connect.c.
References pg_conn::be_pid, conn, CONNECTION_OK, and pg_conn::status.
Referenced by exec_command_conninfo(), get_prompt(), libpqrcv_get_backend_pid(), main(), postgres_fdw_get_connections_internal(), send_cancellable_query_impl(), and StartLogStreamer().
Definition at line 3514 of file fe-exec.c.
References pg_result::binary.
Referenced by HandleCopyResult().
Definition at line 548 of file fe-cancel.c.
References buf, closesocket, connect, EINTR, fb(), optional_setsockopt(), pg_ntoh32, PGINVALID_SOCKET, recv, send, SOCK_ERRNO, SOCK_ERRNO_SET, socket, strlcpy(), and val.
Referenced by DisconnectDatabase(), handle_sigint(), PQrequestCancel(), ShutdownWorkersHard(), sigTermHandler(), and test_cancel().
|
extern |
Definition at line 190 of file fe-cancel.c.
References cancelConn, PQcancelStart(), and pqConnectDBComplete().
Referenced by disconnectDatabase(), test_cancel(), and try_complete_step().
|
extern |
Definition at line 68 of file fe-cancel.c.
References SockAddr::addr, pg_conn::be_cancel_key, pg_conn::be_cancel_key_len, pg_cancel::be_pid, pg_conn::be_pid, calloc, cancelConn, conn, CONNECTION_ALLOCATED, CONNECTION_BAD, pg_conn::connhost, fb(), libpq_append_conn_error(), malloc, PGINVALID_SOCKET, pqConnectOptions2(), pqCopyPGconn(), pqMakeEmptyPGconn(), pqReleaseConnHosts(), pg_conn::pversion, pg_conn::raddr, pg_conn::sock, and pg_conn::whichhost.
Referenced by disconnectDatabase(), libpqsrv_cancel(), test_cancel(), and try_complete_step().
|
extern |
Definition at line 325 of file fe-cancel.c.
References cancelConn, and PQerrorMessage().
Referenced by libpqsrv_cancel(), test_cancel(), and try_complete_step().
|
extern |
Definition at line 353 of file fe-cancel.c.
References cancelConn, and PQfinish().
Referenced by disconnectDatabase(), libpqsrv_cancel(), test_cancel(), and try_complete_step().
|
extern |
Definition at line 226 of file fe-cancel.c.
References cancelConn, conn, CONNECTION_AWAITING_RESPONSE, CONNECTION_BAD, CONNECTION_OK, pg_conn::errorMessage, fb(), libpq_append_conn_error(), PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, PQconnectPoll(), pqReadData(), resetPQExpBuffer(), and pg_conn::status.
Referenced by libpqsrv_cancel(), pqConnectDBComplete(), and test_cancel().
|
extern |
Definition at line 337 of file fe-cancel.c.
References cancelConn, CONNECTION_ALLOCATED, and pqClosePGconn().
Referenced by test_cancel().
|
extern |
Definition at line 313 of file fe-cancel.c.
References cancelConn, and PQsocket().
Referenced by libpqsrv_cancel(), and test_cancel().
|
extern |
Definition at line 204 of file fe-cancel.c.
References cancelConn, CONNECTION_ALLOCATED, CONNECTION_BAD, libpq_append_conn_error(), and pqConnectDBStart().
Referenced by libpqsrv_cancel(), PQcancelBlocking(), and test_cancel().
|
extern |
Definition at line 302 of file fe-cancel.c.
References cancelConn, and PQstatus().
Referenced by test_cancel().
Definition at line 1531 of file fe-auth.c.
References buf, conn, fb(), initPQExpBuffer(), PQencryptPasswordConn(), PQescapeIdentifier(), PQescapeLiteral(), PQexec(), PQfreemem(), printfPQExpBuffer(), termPQExpBuffer(), and user.
Referenced by exec_command_password().
Definition at line 727 of file fe-exec.c.
References pg_result::attDescs, pg_result::curBlock, pg_result::errFields, pg_result::events, fb(), free, i, PGEvent::name, pg_result::nEvents, pgresult_data::next, OOM_result, pg_result::paramDescs, PGEvent::passThrough, PGEVT_RESULTDESTROY, PGEvent::proc, PGEventResultDestroy::result, PGEvent::resultInitialized, and pg_result::tuples.
Definition at line 7794 of file fe-connect.c.
References pg_conn::client_encoding, conn, CONNECTION_OK, and pg_conn::status.
Referenced by appendQualifiedRelation(), appendStringLiteralConn(), dblink_connect(), dblink_get_conn(), escape_append_literal(), escape_fmt_id(), exec_command_encoding(), gen_reindex_command(), get_parallel_tabidx_list(), get_parallel_tables_list(), main(), processSQLNamePattern(), retrieve_objects(), SendQuery(), setup_connection(), SyncVariables(), test_one_vector_escape(), and test_psql_parse().
Definition at line 2556 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), PqMsg_Close, and PQsendTypedCommand().
Referenced by test_prepared().
Definition at line 2538 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), PqMsg_Close, PQsendTypedCommand(), and stmt.
Referenced by test_prepared().
Definition at line 3769 of file fe-exec.c.
References pg_result::cmdStatus, and fb().
Definition at line 3839 of file fe-exec.c.
References pg_result::cmdStatus, fb(), pg_result::noticeHooks, and pqInternalNotice().
|
extern |
Definition at line 2207 of file fe-connect.c.
References conninfo_add_defaults(), conninfo_init(), fb(), initPQExpBuffer(), PQconninfoFree(), PQExpBufferDataBroken, and termPQExpBuffer().
Referenced by check_pghost_envvar(), dblink_fdw_validator(), do_connect(), get_connect_string(), GetDbnameFromConnectionOptions(), InitPgFdwOptions(), main(), and main().
Definition at line 825 of file fe-connect.c.
References conn, CONNECTION_BAD, fb(), pqConnectDBComplete(), PQconnectStart(), and pg_conn::status.
Referenced by connect_database(), get_db_conn(), main(), and main().
|
extern |
Definition at line 770 of file fe-connect.c.
References conn, CONNECTION_BAD, fb(), keywords, pqConnectDBComplete(), PQconnectStartParams(), pg_conn::status, and values.
Referenced by ConnectDatabase(), connectDatabase(), copy_connection(), doConnect(), ECPGconnect(), GetConnection(), main(), sql_conn(), test_protocol_version(), and vacuumlo().
Definition at line 7757 of file fe-connect.c.
References conn, fb(), password, pg_conn::password_needed, and PQpass().
Referenced by ConnectDatabase(), connectDatabase(), do_connect(), doConnect(), GetConnection(), main(), sql_conn(), and vacuumlo().
Definition at line 7783 of file fe-connect.c.
References conn, and pg_conn::gssapi_used.
Referenced by dblink_security_check(), exec_command_conninfo(), and pgfdw_security_check().
Definition at line 7772 of file fe-connect.c.
References conn, and pg_conn::password_needed.
Referenced by ConnectDatabaseAhx(), dblink_security_check(), exec_command_conninfo(), libpqrcv_connect(), and pgfdw_security_check().
|
extern |
Definition at line 2922 of file fe-connect.c.
References SockAddr::addr, pg_conn::addr, pg_conn::allowed_enc_methods, pg_conn::altsock, appendPQExpBufferChar(), pg_conn::appname, Assert, pg_conn::async_auth, pg_conn::asyncStatus, AUTH_REQ_OK, pg_conn::auth_req_received, pg_conn::cancelRequest, CHT_HOST_ADDRESS, CHT_HOST_NAME, CHT_UNIX_SOCKET, pg_conn::cleanup_async_auth, conn, connect, connectFailureMessage(), CONNECTION_AUTH_OK, CONNECTION_AUTHENTICATING, CONNECTION_AWAITING_RESPONSE, CONNECTION_BAD, CONNECTION_CHECK_STANDBY, CONNECTION_CHECK_TARGET, CONNECTION_CHECK_WRITABLE, CONNECTION_CONSUME, CONNECTION_FAILED, CONNECTION_GSS_STARTUP, CONNECTION_MADE, CONNECTION_NEEDED, CONNECTION_OK, CONNECTION_SSL_STARTUP, CONNECTION_STARTED, connectNoDelay(), pg_conn::connhost, pg_conn::connip, pg_conn::current_enc_method, PQExpBufferData::data, pg_conn::default_transaction_read_only, EINPROGRESS, EINTR, emitHostIdentityInfo(), ENC_GSSAPI, ENC_SSL, ENCRYPTION_NEGOTIATION_FAILED, EnvironmentOptions, err(), ERRCODE_APPNAME_UNKNOWN, ERRCODE_CANNOT_CONNECT_NOW, pg_conn::errorMessage, EWOULDBLOCK, pg_conn::failed_enc_methods, fb(), pg_conn::fbappname, free, gai_strerror(), getHostaddr(), getpeereid(), pg_conn::gssencmode, i, pg_conn::in_hot_standby, pg_conn::inCursor, pg_conn::inEnd, init_allowed_encryption_methods(), pg_conn::inStart, j, pg_conn::laddr, pg_conn::last_sqlstate, PQExpBufferData::len, libpq_append_conn_error(), libpq_gettext, LOAD_BALANCE_RANDOM, pg_conn::load_balance_type, MAX_ERRLEN, pg_conn::max_pversion, MAXPGPATH, MemSet, pg_conn::naddr, pg_conn::nconnhost, NEGOTIATE_GSS_CODE, NEGOTIATE_SSL_CODE, pg_conn::oauth_want_retry, pg_conn::Pfdebug, PG_BOOL_NO, PG_BOOL_UNKNOWN, PG_BOOL_YES, PG_DIAG_SQLSTATE, pg_fe_getusername(), pg_fe_sendauth(), pg_freeaddrinfo_all(), pg_getaddrinfo_all(), pg_GSS_have_cred_cache(), pg_hton32, pg_oauth_mech, pg_prng_uint64_range(), pg_set_noblock(), PG_STRERROR_R_BUFLEN, PGASYNC_BUSY, PGASYNC_IDLE, PGINVALID_SOCKET, pgpassfileWarning(), PGRES_FATAL_ERROR, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, PGRES_POLLING_WRITING, PGRES_TUPLES_OK, pg_conn::pipelineStatus, portstr, PQ_PIPELINE_OFF, pqBuildStartupPacket3(), pqCheckInBufferSpace(), PQclear, pqClearAsyncResult(), pqClearConnErrorState, pqClearOAuthToken(), PQconsumeInput(), pqDropConnection(), pqDropServerData(), pqFlush(), pqGetc(), pqGetErrorNotice3(), pqGetInt(), pqGetNegotiateProtocolVersion3(), PQgetResult, pqGets_append(), PQgetvalue, PQisBusy(), PqMsg_AuthenticationRequest, PqMsg_ErrorResponse, PqMsg_NegotiateProtocolVersion, PQntuples, pqPacketSend(), pqParseDone(), pqParseIntParam(), pqReadData(), PQresultErrorField, PQresultStatus, pqsecure_open_client(), pqsecure_open_gss(), PQsendCancelRequest(), PQsendQueryContinue(), pqTraceOutputCharResponse(), PQTRANS_IDLE, pg_conn::prng_state, pg_conn::pversion, pg_conn::pversion_negotiated, pg_conn::raddr, release_conn_addrinfo(), pg_conn::requirepeer, pg_result::resultStatus, SockAddr::salen, pg_conn::sasl, pg_conn::send_appname, sendTerminateConn(), SERVER_TYPE_PREFER_STANDBY, SERVER_TYPE_PREFER_STANDBY_PASS2, SERVER_TYPE_PRIMARY, SERVER_TYPE_READ_ONLY, SERVER_TYPE_READ_WRITE, SERVER_TYPE_STANDBY, setKeepalivesCount(), setKeepalivesIdle(), setKeepalivesInterval(), setTCPUserTimeout(), pg_conn::sigpipe_flag, pg_conn::sigpipe_so, snprintf, pg_conn::sock, SOCK_ERRNO, SOCK_STRERROR, socket, pg_conn::ssl_in_use, pg_conn::sslnegotiation, pg_conn::status, STATUS_OK, store_conn_addrinfo(), strerror_r, pg_conn::sversion, pg_conn::target_server_type, pg_conn::try_next_addr, pg_conn::try_next_host, UNIXSOCK_PATH, UNIXSOCK_PATH_BUFLEN, useKeepalives(), val, pg_conn::whichaddr, pg_conn::whichhost, and pg_conn::xactStatus.
Referenced by libpqsrv_connect_internal(), main(), PQcancelPoll(), pqConnectDBComplete(), pqConnectDBStart(), PQresetPoll(), process_slot(), and wait_until_connected().
Definition at line 953 of file fe-connect.c.
References conn, CONNECTION_BAD, connectOptions1(), fb(), pqConnectDBStart(), pqConnectOptions2(), pqMakeEmptyPGconn(), and pg_conn::status.
Referenced by libpqsrv_connect(), main(), PQconnectdb(), PQping(), and start_conn().
|
extern |
Definition at line 872 of file fe-connect.c.
References conn, CONNECTION_BAD, conninfo_array_parse(), pg_conn::errorMessage, fb(), fillPGconn(), keywords, pqConnectDBStart(), pqConnectOptions2(), PQconninfoFree(), pqMakeEmptyPGconn(), pg_conn::status, and values.
Referenced by do_connect(), libpqsrv_connect_params(), PQconnectdbParams(), and PQpingParams().
|
extern |
Definition at line 7481 of file fe-connect.c.
References conn, conninfo_init(), conninfo_storeval(), fb(), initPQExpBuffer(), PQconninfoOptions, PQExpBufferDataBroken, and termPQExpBuffer().
Referenced by copy_connection(), do_connect(), GenerateRecoveryConfig(), get_conninfo_value(), libpqrcv_get_conninfo(), and test_protocol_version().
|
extern |
Definition at line 7525 of file fe-connect.c.
References fb(), free, and option::val.
Referenced by check_pghost_envvar(), ConnectDatabase(), connectOptions1(), conninfo_array_parse(), conninfo_parse(), conninfo_uri_parse(), copy_connection(), dblink_connstr_has_pw(), dblink_connstr_has_required_scram_options(), do_connect(), GenerateRecoveryConfig(), get_base_conninfo(), get_conninfo_value(), GetConnection(), GetDbnameFromConnectionOptions(), InitPgFdwOptions(), libpqrcv_check_conninfo(), libpqrcv_get_conninfo(), libpqrcv_get_option_from_conninfo(), PQconndefaults(), PQconnectStartParams(), and test_protocol_version().
|
extern |
Definition at line 6241 of file fe-connect.c.
References errmsg(), fb(), initPQExpBuffer(), parse_connection_string(), PQExpBufferDataBroken, and termPQExpBuffer().
Referenced by ConnectDatabase(), dblink_connstr_has_pw(), dblink_connstr_has_required_scram_options(), do_connect(), get_base_conninfo(), GetConnection(), GetDbnameFromConnectionOptions(), libpqrcv_check_conninfo(), libpqrcv_get_option_from_conninfo(), main(), and main().
Definition at line 2001 of file fe-exec.c.
References conn, pqFlush(), pqIsnonblocking, and pqReadData().
Referenced by advanceConnectionState(), consume_query_cancel_impl(), CopyStreamReceive(), dblink_get_notify(), dblink_is_busy(), do_sql_command_end(), ecpg_process_output(), libpqrcv_receive(), libpqsrv_get_result(), main(), pgfdw_cancel_query_end(), pgfdw_exec_cleanup_query_end(), pgfdw_get_cleanup_result(), postgresForeignAsyncNotify(), PQconnectPoll(), PrintNotifications(), process_slot(), StreamLogicalLog(), test_nosync(), test_pipelined_insert(), test_uniqviol(), try_complete_step(), and wait_on_slots().
Definition at line 319 of file fe-exec.c.
References pg_result::attDescs, pg_result::client_encoding, pg_result::cmdStatus, dupEvents(), pg_result::events, fb(), i, pgresAttValue::len, pg_result::nEvents, pg_result::noticeHooks, pg_result::ntups, pg_result::numAttributes, PG_COPYRES_ATTRS, PG_COPYRES_EVENTS, PG_COPYRES_NOTICEHOOKS, PG_COPYRES_TUPLES, PGEVT_RESULTCOPY, PGRES_TUPLES_OK, PQclear, PQmakeEmptyPGresult(), PQsetResultAttrs(), PQsetvalue(), PGEvent::resultInitialized, PGEventResultCopy::src, pg_result::tuples, and pgresAttValue::value.
Referenced by pqRowProcessor().
Definition at line 7538 of file fe-connect.c.
References conn, pg_conn::dbName, and fb().
Referenced by append_rel_pattern_filtered_cte(), cluster_one_database(), do_connect(), exec_command_conninfo(), find_matching_idle_slot(), get_prompt(), GetTableInfo(), main(), main(), prohibit_crossdb_refs(), reindex_one_database(), run_command(), run_reindex_command(), run_vacuum_command(), slashUsage(), SyncVariables(), TableCommandResultHandler(), vacuum_one_database(), validateSQLNamePattern(), and WriteHead().
|
extern |
Definition at line 1601 of file fe-auth.c.
Referenced by PQsetAuthDataHook().
Definition at line 1904 of file fe-secure-openssl.c.
References buf, conn, fb(), fprintf, libpq_gettext, and pg_conn::sslpassword.
Referenced by PQssl_passwd_cb().
Definition at line 2491 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), PqMsg_Describe, and PQsendTypedCommand().
Referenced by test_prepared().
Definition at line 2472 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), PqMsg_Describe, PQsendTypedCommand(), and stmt.
Referenced by DescribeQuery(), ECPGdescribe(), and test_prepared().
|
extern |
Definition at line 605 of file fe-print.c.
References DEFAULT_FIELD_SEP, fb(), fill(), fprintf, free, i, j, libpq_gettext, malloc, PQfname, PQgetlength, PQgetvalue, PQnfields, and PQntuples.
Definition at line 1276 of file fe-misc.c.
References encoding, and pg_encoding_dsplen().
Referenced by get_prompt(), pg_wcsformat(), pg_wcssize(), pg_wcswidth(), and strlen_max_width().
Definition at line 1363 of file fe-auth.c.
References fb(), free, malloc, MD5_PASSWD_LEN, pg_md5_encrypt(), and user.
|
extern |
Definition at line 1406 of file fe-auth.c.
References conn, fb(), free, libpq_append_conn_error(), malloc, MAX_ALGORITHM_NAME_LEN, MD5_PASSWD_LEN, pg_fe_scram_build_secret(), pg_md5_encrypt(), PGRES_TUPLES_OK, PQclear, pqClearConnErrorState, PQexec(), PQgetvalue, PQnfields, PQntuples, PQresultStatus, pg_conn::scram_sha_256_iterations, user, and val.
Referenced by main(), and PQchangePassword().
Definition at line 2966 of file fe-exec.c.
References conn, and pqEndcopy3().
Referenced by ecpg_check_PQresult(), initPopulateTable(), libpqrcv_endstreaming(), and readCommandResponse().
Definition at line 3059 of file fe-exec.c.
References pg_conn::asyncStatus, conn, libpq_append_conn_error(), PGASYNC_IDLE, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, and PQ_PIPELINE_ON.
Referenced by ExecQueryAndProcessResults(), executeMetaCommand(), test_disallowed_in_pipeline(), test_multi_pipelines(), test_nosync(), test_pipeline_abort(), test_pipeline_idle(), test_pipelined_insert(), test_prepared(), test_simple_pipeline(), test_singlerowmode(), test_transaction(), and test_uniqviol().
Definition at line 1285 of file fe-misc.c.
References encoding, fb(), pg_char_to_encoding, PG_SQL_ASCII, and str.
Referenced by main().
Definition at line 7704 of file fe-connect.c.
References conn, PQExpBufferData::data, pg_conn::errorMessage, libpq_gettext, and PQExpBufferBroken.
Referenced by _doSetSessionAuth(), _printTableAccessMethodNoStorage(), _selectOutputSchema(), _selectTableAccessMethod(), _selectTablespace(), AcceptResult(), advanceConnectionState(), BaseBackup(), check_loadable_libraries(), check_prepare_conn(), CheckCopyStreamStop(), cluster_one_database(), compile_database_list(), compile_relation_list_one_db(), confirm_result_status_impl(), connect_database(), connect_pg_server(), ConnectDatabase(), connectDatabase(), connectToServer(), consume_null_result_impl(), consume_query_cancel_impl(), copy_connection(), CopyStreamPoll(), CopyStreamReceive(), CreateReplicationSlot(), dblink_connect(), dblink_error_message(), dblink_get_conn(), dblink_res_error(), dblink_res_internalerror(), dblink_send_query(), DescribeQuery(), die_on_query_failure(), do_connect(), do_lo_export(), do_lo_import(), do_lo_unlink(), doConnect(), DropReplicationSlot(), dump_lo_buf(), dumpLOs(), dumpTableData_copy(), ecpg_check_PQresult(), ecpg_raise_backend(), ECPGconnect(), EndDBCopyMode(), escape_identifier(), escape_literal(), escape_string_conn(), exec_command_password(), ExecQueryAndProcessResults(), executeCommand(), executeCommand(), executeQuery(), executeQuery(), executeQueryOrDie(), ExecuteSqlCommand(), ExecuteSqlCommandBuf(), executeStatement(), find_publication(), get_table_relkind(), GetConnection(), GetConnection(), GetSlotInformation(), GetTableInfo(), handleCopyIn(), handleCopyOut(), HandleEndOfCopyStream(), initPopulateTable(), libpqrcv_alter_slot(), libpqrcv_connect(), libpqrcv_create_slot(), libpqrcv_endstreaming(), libpqrcv_exec(), libpqrcv_identify_system(), libpqrcv_readtimelinehistoryfile(), libpqrcv_receive(), libpqrcv_send(), libpqrcv_startstreaming(), main(), main(), my_truncate(), overwrite(), pgfdw_cancel_query_end(), pgfdw_report_internal(), pickout(), PQcancelErrorMessage(), prepareCommand(), process_query_result(), process_queued_fetch_requests(), process_result(), process_slot(), ProcessWALDataMsg(), psql_get_variable(), ReceiveCopyData(), RetrieveDataDirCreatePerm(), RetrieveWalSegSize(), run_command(), run_permutation(), run_reindex_command(), run_vacuum_command(), RunIdentifySystem(), send_cancellable_query_impl(), sendFeedback(), sendFeedback(), SendQuery(), sql_conn(), sql_exec(), start_postmaster(), StartRestoreLO(), storeQueryResult(), StreamLogicalLog(), TableCommandResultHandler(), test_cancel(), test_disallowed_in_pipeline(), test_multi_pipelines(), test_nosync(), test_one_vector(), test_pipeline_abort(), test_pipeline_idle(), test_pipelined_insert(), test_prepared(), test_protocol_version(), test_simple_pipeline(), test_singlerowmode(), test_transaction(), test_uniqviol(), threadRun(), try_complete_step(), tryExecuteStatement(), vacuumlo(), verify_btree_slot_handler(), verify_heap_slot_handler(), and wait_for_connection_state().
|
extern |
Definition at line 4592 of file fe-exec.c.
References fb(), PQescapeByteaInternal(), and static_std_strings.
|
extern |
Definition at line 4576 of file fe-exec.c.
References pg_conn::cmd_queue_head, conn, fb(), pqClearConnErrorState, PQescapeByteaInternal(), pg_conn::std_strings, and pg_conn::sversion.
Definition at line 4405 of file fe-exec.c.
References conn, len, PQescapeInternal(), and str.
Referenced by create_publication(), create_subscription(), drop_publication(), enable_subscription(), escape_identifier(), initCreatePKeys(), initCreateTables(), main(), PQchangePassword(), psql_get_variable(), stringlist_to_identifierstr(), and vacuumlo().
Definition at line 4399 of file fe-exec.c.
References conn, len, PQescapeInternal(), and str.
Referenced by check_and_drop_existing_subscriptions(), create_logical_replication_slot(), create_publication(), create_subscription(), DescribeQuery(), drop_replication_slot(), escape_literal(), find_publication(), libpqrcv_startstreaming(), PQchangePassword(), psql_get_variable(), set_locale_and_encoding(), set_replication_progress(), and test_gb18030_page_multiple().
Definition at line 4216 of file fe-exec.c.
References fb(), PQescapeStringInternal(), static_client_encoding, and static_std_strings.
Referenced by escape_string(), get_comma_elts(), and quote_postgres().
|
extern |
Definition at line 4194 of file fe-exec.c.
References pg_conn::client_encoding, pg_conn::cmd_queue_head, conn, error(), fb(), pqClearConnErrorState, PQescapeStringInternal(), and pg_conn::std_strings.
Referenced by AppendStringCommandOption(), appendStringLiteralConn(), check_loadable_libraries(), do_lo_import(), and escape_string_conn().
Definition at line 2279 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), and PQsendQuery().
Referenced by _doSetSessionAuth(), _printTableAccessMethodNoStorage(), _selectOutputSchema(), _selectTableAccessMethod(), _selectTablespace(), check_and_drop_existing_subscriptions(), check_and_drop_publications(), check_loadable_libraries(), check_prepare_conn(), check_publisher(), check_subscriber(), connect_database(), create_logical_replication_slot(), create_publication(), create_subscription(), CreateReplicationSlot(), deallocate_one(), DescribeQuery(), drop_existing_subscription(), drop_failover_replication_slots(), drop_publication(), drop_replication_slot(), DropReplicationSlot(), ecpg_autostart_transaction(), ecpg_execute(), ecpg_is_type_an_array(), ECPGsetcommit(), ECPGtrans(), enable_subscription(), executeCommand(), executeCommand(), executeMaintenanceCommand(), executeQuery(), executeQuery(), executeQueryOrDie(), ExecuteSqlCommand(), ExecuteSqlQuery(), ExecuteSqlStatement(), executeStatement(), find_publication(), generate_object_name(), get_create_object_cmd(), get_primary_sysid(), get_publisher_databases(), GetConnection(), GetSlotInformation(), GetTableInfo(), init_libpq_conn(), initPopulateTable(), libpq_traverse_files(), lo_initialize(), lockTableForWorker(), lookup_object_oid(), main(), main(), PQchangePassword(), PQencryptPasswordConn(), PQsetClientEncoding(), PSQLexec(), ReceiveXlogStream(), RetrieveDataDirCreatePerm(), RetrieveWalSegSize(), run_permutation(), run_simple_command(), run_simple_query(), RunIdentifySystem(), SendQuery(), server_is_in_recovery(), set_replication_progress(), setup_publisher(), sql_conn(), sql_exec(), StreamLogicalLog(), test_disallowed_in_pipeline(), test_pipeline_abort(), test_prepared(), test_transaction(), test_uniqviol(), tryExecuteStatement(), and vacuumlo().
|
extern |
Definition at line 2293 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), and PQsendQueryParams().
Referenced by ecpg_execute(), get_table_relkind(), libpq_fetch_file(), main(), and wait_for_connection_state().
|
extern |
Definition at line 2340 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), and PQsendQueryPrepared().
Referenced by ecpg_execute(), and try_complete_step().
Definition at line 3090 of file fe-exec.c.
References pg_conn::asyncStatus, pg_conn::cmd_queue_head, conn, fb(), libpq_append_conn_error(), PGASYNC_BUSY, PGASYNC_COPY_BOTH, PGASYNC_COPY_IN, PGASYNC_COPY_OUT, PGASYNC_IDLE, PGASYNC_PIPELINE_IDLE, PGASYNC_READY, PGASYNC_READY_MORE, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, and pqFlush().
Referenced by discardUntilSync(), ExecQueryAndProcessResults(), readCommandResponse(), test_disallowed_in_pipeline(), test_multi_pipelines(), test_pipeline_abort(), test_pipeline_idle(), test_pipelined_insert(), test_prepared(), test_simple_pipeline(), test_singlerowmode(), and test_transaction().
Definition at line 3725 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), fb(), and pgresAttDesc::format.
Referenced by ecpg_get_data(), ecpg_store_result(), and process_queued_fetch_requests().
Definition at line 5316 of file fe-connect.c.
References conn, freePGconn(), and pqClosePGconn().
Referenced by appendQualifiedRelation(), BaseBackup(), check_for_connection_status(), check_for_pg_role_prefix(), check_for_prepared_transactions(), check_is_install_user(), check_loadable_libraries(), check_new_cluster_replication_slots(), check_new_cluster_subscription_configuration(), check_old_cluster_subscription_state(), CheckConnection(), cluster_all_databases(), cluster_one_database(), connect_database(), ConnectDatabase(), connectDatabase(), connectToServer(), create_conflict_detection_slot(), create_logical_replication_slots(), create_new_objects(), disconnect_atexit(), disconnect_atexit(), disconnect_atexit(), disconnect_atexit(), disconnect_atexit(), disconnect_database(), DisconnectDatabase(), disconnectDatabase(), do_connect(), doConnect(), dumpRoleGUCPrivs(), dumpRoleMembership(), dumpTablespaces(), ecpg_finish(), executeCommand(), executeCommand(), executeQuery(), executeQuery(), executeQueryOrDie(), exit_nicely(), exit_nicely(), exit_nicely(), exit_nicely(), exit_nicely(), exit_nicely(), exit_nicely(), expand_dbname_patterns(), finishCon(), get_db_infos(), get_subscription_info(), get_tablespace_paths(), get_template0_info(), GetConnection(), libpqsrv_connect_internal(), libpqsrv_disconnect(), LogStreamerMain(), main(), main(), old_9_6_invalidate_hash_indexes(), PQcancelFinish(), PQping(), PQpingParams(), process_slot(), ReconnectToServer(), reindex_all_databases(), reindex_one_database(), runInitSteps(), set_frozenxids(), set_locale_and_encoding(), sql_conn(), sql_exec(), start_postmaster(), StreamLog(), StreamLogicalLog(), test_cancel(), test_protocol_version(), unicode_version_changed(), vacuum_all_databases(), vacuum_one_database(), and vacuumlo().
Definition at line 4017 of file fe-exec.c.
References conn, CONNECTION_BAD, pqFlush(), and pg_conn::status.
Referenced by CheckCopyStreamStop(), ExecQueryAndProcessResults(), HandleEndOfCopyStream(), libpqrcv_endstreaming(), libpqrcv_send(), prepareToTerminate(), ProcessWALDataMsg(), sendFeedback(), sendFeedback(), test_nosync(), test_pipelined_insert(), and test_uniqviol().
Definition at line 3758 of file fe-exec.c.
References pg_result::attDescs, pgresAttDesc::atttypmod, check_field_number(), and fb().
Referenced by DescribeQuery(), and ECPGget_desc().
|
extern |
Definition at line 2997 of file fe-exec.c.
References pg_conn::asyncStatus, pg_conn::cmd_queue_head, conn, fb(), libpq_append_conn_error(), PGASYNC_IDLE, pgHavePendingResult, PGINVALID_SOCKET, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, pqClearConnErrorState, pqFunctionCall3(), and pg_conn::sock.
Referenced by lo_close(), lo_creat(), lo_create(), lo_lseek(), lo_lseek64(), lo_open(), lo_read(), lo_tell(), lo_tell64(), lo_truncate(), lo_truncate64(), lo_unlink(), and lo_write().
Definition at line 3584 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), fb(), and pgresAttDesc::name.
Definition at line 3606 of file fe-exec.c.
References pg_result::attDescs, fb(), free, i, pgresAttDesc::name, pg_result::numAttributes, and pg_tolower().
Referenced by append_depends_on_extension(), binary_upgrade_set_type_oids_by_type_oid(), buildMatViewRefreshDependencies(), check_for_connection_status(), check_for_pg_role_prefix(), check_new_cluster_replication_slots(), collectComments(), collectSecLabels(), describeOneTableDetails(), dropRoles(), dumpAgg(), dumpBaseType(), dumpCollation(), dumpCompositeType(), dumpCompositeTypeColComments(), dumpConversion(), dumpDatabase(), dumpDomain(), dumpEnumType(), dumpFunc(), dumpOpclass(), dumpOpfamily(), dumpOpr(), dumpRangeType(), dumpRelationStats_dumper(), dumpRoleMembership(), dumpRoles(), dumpStatisticsExtStats(), dumpTableSchema(), dumpTSConfig(), dumpUserMappings(), get_db_infos(), get_subscription_info(), get_tablespace_paths(), get_template0_info(), getAccessMethods(), getAggregates(), getCasts(), getCollations(), getConstraints(), getConversions(), getDefaultACLs(), getDependencies(), getDomainConstraints(), getEventTriggers(), getExtendedStatistics(), getExtensionMembership(), getExtensions(), getForeignDataWrappers(), getForeignServers(), getFuncs(), getIndexes(), getInherits(), getLOs(), getNamespaces(), getOpclasses(), getOperators(), getOpfamilies(), getPolicies(), getProcLangs(), getPublicationNamespaces(), getPublications(), getPublicationTables(), getRules(), getSubscriptionRelations(), getSubscriptions(), getTableAttrs(), getTables(), getTransforms(), getTriggers(), getTSConfigurations(), getTSDictionaries(), getTSParsers(), getTSTemplates(), getTypes(), old_9_6_invalidate_hash_indexes(), process_data_type_check(), process_extension_updates(), process_gist_inet_ops_check(), process_incompat_polymorphics(), process_inconsistent_notnull(), process_isn_and_int8_passing_mismatch(), process_old_cluster_logical_slot_infos(), process_old_sub_state_check(), process_rel_infos(), process_unicode_update(), process_user_defined_encoding_conversions(), process_user_defined_postfix_ops(), process_with_oids_check(), processExtensionTables(), set_frozenxids(), and show_binary_results().
Definition at line 502 of file fe-cancel.c.
Referenced by PQrequestCancel(), ResetCancelConn(), set_archive_cancel_info(), SetCancelConn(), and test_cancel().
Definition at line 4049 of file fe-exec.c.
References free.
Referenced by check_and_drop_existing_subscriptions(), create_logical_replication_slot(), create_publication(), create_subscription(), dblink_get_notify(), DescribeQuery(), do_connect(), drop_publication(), drop_replication_slot(), dumpTableData_copy(), ecpg_process_output(), enable_subscription(), escape_identifier(), escape_literal(), exec_command_errverbose(), find_publication(), get_base_conninfo(), handleCopyOut(), HandleCopyStream(), initCreatePKeys(), initCreateTables(), libpqrcv_check_conninfo(), libpqrcv_disconnect(), libpqrcv_get_option_from_conninfo(), libpqrcv_receive(), libpqrcv_startstreaming(), main(), main(), PQchangePassword(), PQfreeNotify(), PrintNotifications(), psql_get_variable(), ReceiveCopyData(), set_locale_and_encoding(), set_replication_progress(), StreamLogicalLog(), stringlist_to_identifierstr(), try_complete_step(), and vacuumlo().
Definition at line 3747 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), fb(), and pgresAttDesc::typlen.
Referenced by ecpg_build_compat_sqlda(), and ECPGget_desc().
Definition at line 3703 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), fb(), InvalidOid, and pgresAttDesc::tableid.
Definition at line 3714 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), pgresAttDesc::columnid, and fb().
Definition at line 3736 of file fe-exec.c.
References pg_result::attDescs, check_field_number(), fb(), InvalidOid, and pgresAttDesc::typid.
Referenced by DescribeQuery(), dumpTableData_insert(), ecpg_build_compat_sqlda(), ecpg_build_native_sqlda(), ecpg_store_result(), ECPGget_desc(), printCrosstab(), printQuery(), process_queued_fetch_requests(), sqlda_common_total_size(), and test_prepared().
Definition at line 7684 of file fe-connect.c.
References conn, CONNECTION_BAD, PG_PROTOCOL_FULL, pg_conn::pversion, and pg_conn::status.
Referenced by exec_command_conninfo(), and test_protocol_version().
|
extern |
Definition at line 1589 of file fe-auth.c.
References PQauthDataHook.
Referenced by prompt_user().
Definition at line 368 of file fe-cancel.c.
References pg_conn::be_cancel_key, pg_conn::be_cancel_key_len, pg_conn::be_pid, calloc, CANCEL_REQUEST_CODE, conn, fb(), free, pg_conn::keepalives, pg_conn::keepalives_count, pg_conn::keepalives_idle, pg_conn::keepalives_interval, malloc, pg_hton32, PGINVALID_SOCKET, pg_conn::pgtcp_user_timeout, pqParseIntParam(), pg_conn::raddr, and pg_conn::sock.
Referenced by PQrequestCancel(), set_archive_cancel_info(), SetCancelConn(), and test_cancel().
Definition at line 2833 of file fe-exec.c.
References pg_conn::asyncStatus, conn, fb(), libpq_append_conn_error(), PGASYNC_COPY_BOTH, PGASYNC_COPY_OUT, and pqGetCopyData3().
Referenced by CopyStreamReceive(), dumpTableData_copy(), ecpg_process_output(), handleCopyOut(), libpqrcv_receive(), ReceiveCopyData(), and StreamLogicalLog().
|
extern |
Definition at line 1235 of file fe-misc.c.
References fb(), and gettimeofday().
Referenced by pqConnectDBComplete(), PQsocketPoll(), and wait_until_connected().
Definition at line 3918 of file fe-exec.c.
References check_tuple_field_number(), fb(), pgresAttValue::len, NULL_LEN, and pg_result::tuples.
Definition at line 3904 of file fe-exec.c.
References check_tuple_field_number(), fb(), pgresAttValue::len, NULL_LEN, and pg_result::tuples.
Definition at line 2871 of file fe-exec.c.
References conn, fb(), and pqGetline3().
Definition at line 2918 of file fe-exec.c.
References bufsize, conn, and pqGetlineAsync3().
Referenced by pqGetline3().
Definition at line 2079 of file fe-exec.c.
References Assert, pg_conn::asyncStatus, conn, fb(), getCopyResult(), libpq_append_conn_error(), pg_result::nEvents, parseInput(), PGASYNC_BUSY, PGASYNC_COPY_BOTH, PGASYNC_COPY_IN, PGASYNC_COPY_OUT, PGASYNC_IDLE, PGASYNC_PIPELINE_IDLE, PGASYNC_READY, PGASYNC_READY_MORE, PGRES_COPY_BOTH, PGRES_COPY_IN, PGRES_COPY_OUT, PGRES_PIPELINE_SYNC, PGRES_TUPLES_CHUNK, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, pqCommandQueueAdvance(), PQfireResultCreateEvents(), pqFlush(), pqPipelineProcessQueue(), pqPrepareAsyncResult(), pqReadData(), pqSaveErrorResult(), pqSaveWriteError(), pqWait(), pg_conn::result, pg_result::resultStatus, and pg_conn::write_failed.
|
extern |
Definition at line 1922 of file fe-secure-openssl.c.
References fb(), and PQsslKeyPassHook.
Definition at line 3893 of file fe-exec.c.
References check_tuple_field_number(), fb(), pg_result::tuples, and pgresAttValue::value.
Definition at line 7571 of file fe-connect.c.
References conn, pg_conn::connhost, fb(), pg_conn_host::host, pg_conn_host::hostaddr, and pg_conn::whichhost.
Referenced by do_connect(), exec_command_conninfo(), get_prompt(), libpqrcv_get_senderinfo(), main(), pg_GSS_load_servicename(), and SyncVariables().
Definition at line 7594 of file fe-connect.c.
References conn, pg_conn::connhost, pg_conn::connip, and fb().
Referenced by do_connect(), and exec_command_conninfo().
Definition at line 129 of file fe-secure.c.
Definition at line 117 of file fe-secure.c.
Definition at line 2048 of file fe-exec.c.
References pg_conn::asyncStatus, conn, CONNECTION_BAD, parseInput(), PGASYNC_BUSY, and pg_conn::status.
Referenced by advanceConnectionState(), consume_query_cancel_impl(), dblink_is_busy(), libpqsrv_get_result(), pgfdw_get_cleanup_result(), PQconnectPoll(), pqEndcopy3(), process_slot(), test_disallowed_in_pipeline(), test_pipelined_insert(), test_uniqviol(), try_complete_step(), and wait_on_slots().
Definition at line 4000 of file fe-exec.c.
References conn, CONNECTION_BAD, pqIsnonblocking, and pg_conn::status.
Referenced by test_disallowed_in_pipeline(), and test_simple_pipeline().
|
extern |
Definition at line 160 of file fe-exec.c.
References pg_result::attDescs, pg_result::binary, pg_result::client_encoding, pg_conn::client_encoding, pg_result::cmdStatus, conn, pg_result::curBlock, pg_result::curOffset, dupEvents(), pg_result::errFields, pg_result::errMsg, pg_conn::errorMessage, pg_result::errQuery, pg_result::events, pg_conn::events, fb(), malloc, pg_result::memorySize, pg_result::nEvents, pg_conn::nEvents, pg_result::noticeHooks, pg_conn::noticeHooks, PGNoticeHooks::noticeProc, PGNoticeHooks::noticeProcArg, PGNoticeHooks::noticeRec, PGNoticeHooks::noticeRecArg, pg_result::ntups, pg_result::null_field, pg_result::numAttributes, pg_result::numParameters, pg_result::paramDescs, PG_SQL_ASCII, PGRES_COMMAND_OK, PGRES_COPY_BOTH, PGRES_COPY_IN, PGRES_COPY_OUT, PGRES_EMPTY_QUERY, PGRES_SINGLE_TUPLE, PGRES_TUPLES_CHUNK, PGRES_TUPLES_OK, PGresult, PQclear, pqSetResultError(), pg_result::resultStatus, pg_result::spaceLeft, pg_result::tupArrSize, and pg_result::tuples.
Referenced by ECPGallocate_desc(), getCopyResult(), getCopyStart(), getParamDescriptions(), getRowDescriptions(), PQcopyResult(), pqFunctionCall3(), pqGetErrorNotice3(), pqInternalNotice(), pqParseInput3(), pqPipelineProcessQueue(), and pqPrepareAsyncResult().
Definition at line 1255 of file fe-misc.c.
References encoding, and pg_encoding_mblen().
Referenced by appendStringLiteral(), get_prompt(), pg_wcsformat(), pg_wcssize(), pg_wcswidth(), psqlscan_prepare_buffer(), and strlen_max_width().
Definition at line 1266 of file fe-misc.c.
References encoding, fb(), and pg_encoding_mblen().
Referenced by command_no_begin(), dequote_downcase_identifier(), do_field(), patternToSQLRegex(), quote_if_needed(), reportErrorPosition(), skip_white_space(), splitTableColumnsSpec(), strip_quotes(), and strtokx().
Definition at line 3506 of file fe-exec.c.
References pg_result::numAttributes.
Definition at line 2684 of file fe-exec.c.
References conn, fb(), pgNotify::next, pg_conn::notifyHead, pg_conn::notifyTail, and parseInput().
Referenced by dblink_get_notify(), ecpg_process_output(), main(), PrintNotifications(), and try_complete_step().
Definition at line 3932 of file fe-exec.c.
References pg_result::numParameters.
Definition at line 3498 of file fe-exec.c.
References pg_result::ntups.
Definition at line 3810 of file fe-exec.c.
References pg_result::cmdStatus, fb(), and InvalidOid.
Referenced by ecpg_process_output(), and PrintQueryStatus().
Definition at line 7633 of file fe-connect.c.
References conn, fb(), and pg_conn::pgoptions.
Referenced by exec_command_conninfo().
Definition at line 7659 of file fe-connect.c.
References conn, fb(), pgParameterStatus::name, pgParameterStatus::next, pg_conn::pstatus, and pgParameterStatus::value.
Referenced by _check_database_version(), applyRemoteGucs(), BaseBackup(), CheckServerVersionForStreaming(), ConnectDatabase(), connection_warnings(), ecpg_build_params(), exec_command_conninfo(), get_prompt(), GetConnection(), is_superuser(), is_superuser(), printVersion(), session_username(), standard_strings(), and SyncVariables().
Definition at line 3943 of file fe-exec.c.
References check_param_number(), fb(), InvalidOid, pg_result::paramDescs, and pgresParamDesc::typid.
Definition at line 7554 of file fe-connect.c.
References conn, pg_conn::connhost, fb(), password, pg_conn_host::password, pg_conn::pgpass, and pg_conn::whichhost.
Referenced by ConnectDatabaseAhx(), and PQconnectionNeedsPassword().
Definition at line 841 of file fe-connect.c.
References conn, internal_ping(), PQconnectStart(), and PQfinish().
|
extern |
Definition at line 788 of file fe-connect.c.
References conn, fb(), internal_ping(), keywords, PQconnectStartParams(), PQfinish(), and values.
Referenced by main(), and regression_main().
|
extern |
Definition at line 7748 of file fe-connect.c.
References conn, pg_conn::pipelineStatus, and PQ_PIPELINE_OFF.
Referenced by advanceConnectionState(), discardAvailableResults(), exec_command_g(), exec_command_gexec(), exec_command_gset(), exec_command_sendpipeline(), exec_command_watch(), ExecQueryAndProcessResults(), executeMetaCommand(), get_prompt(), test_disallowed_in_pipeline(), test_multi_pipelines(), test_pipeline_abort(), and test_simple_pipeline().
Definition at line 3289 of file fe-exec.c.
References conn, and pqPipelineSyncInternal().
Referenced by discardUntilSync(), ExecQueryAndProcessResults(), executeMetaCommand(), test_multi_pipelines(), test_pipeline_abort(), test_pipelined_insert(), test_prepared(), test_simple_pipeline(), test_singlerowmode(), and test_transaction().
Definition at line 7607 of file fe-connect.c.
References conn, pg_conn::connhost, fb(), pg_conn_host::port, and pg_conn::whichhost.
Referenced by do_connect(), exec_command_conninfo(), get_prompt(), libpqrcv_get_senderinfo(), main(), and SyncVariables().
|
extern |
Definition at line 2323 of file fe-exec.c.
References conn, fb(), PQexecFinish(), PQexecStart(), and PQsendPrepare().
Referenced by DescribeQuery(), init_libpq_conn(), main(), prepare_common(), prepareCommand(), and test_uniqviol().
Definition at line 69 of file fe-print.c.
References calloc, do_field(), do_header(), fb(), fprintf, free, i, j, len, libpq_gettext, output_row(), pq_block_sigpipe(), pq_reset_sigpipe(), PQfname, PQnfields, and PQntuples.
Referenced by printResultSet().
|
extern |
Definition at line 702 of file fe-print.c.
References fb(), fprintf, free, i, j, libpq_gettext, malloc, PQfname, PQgetvalue, PQnfields, PQntuples, and sprintf.
Definition at line 7674 of file fe-connect.c.
References conn, CONNECTION_BAD, PG_PROTOCOL_MAJOR, pg_conn::pversion, and pg_conn::status.
Referenced by handleCopyIn().
Definition at line 2712 of file fe-exec.c.
References pg_conn::asyncStatus, conn, libpq_append_conn_error(), pg_conn::outBufSize, pg_conn::outCount, parseInput(), PGASYNC_COPY_BOTH, PGASYNC_COPY_IN, pqCheckOutBufferSpace(), pqFlush(), pqIsnonblocking, PqMsg_CopyData, pqPutMsgEnd(), pqPutMsgStart(), and pqPutnchar().
Referenced by BaseBackup(), ExecuteSqlCommandBuf(), handleCopyIn(), libpqrcv_send(), PQputnbytes(), sendFeedback(), and sendFeedback().
Definition at line 2766 of file fe-exec.c.
References pg_conn::asyncStatus, pg_conn::cmd_queue_head, conn, libpq_append_conn_error(), PGASYNC_BUSY, PGASYNC_COPY_BOTH, PGASYNC_COPY_IN, PGASYNC_COPY_OUT, PGQUERY_SIMPLE, pqFlush(), PqMsg_CopyDone, PqMsg_CopyFail, PqMsg_Sync, pqPutMsgEnd(), pqPutMsgStart(), pqPuts(), and PGcmdQueueEntry::queryclass.
Referenced by BaseBackup(), CheckCopyStreamStop(), EndDBCopyMode(), handleCopyIn(), HandleEndOfCopyStream(), libpqrcv_endstreaming(), PQexecStart(), prepareToTerminate(), and ProcessWALDataMsg().
Definition at line 2935 of file fe-exec.c.
References conn, fb(), and PQputnbytes().
Referenced by initPopulateTable().
Definition at line 2945 of file fe-exec.c.
References conn, fb(), and PQputCopyData().
Referenced by PQputline().
|
extern |
Definition at line 8373 of file fe-connect.c.
References default_threadlock(), fb(), and pg_g_threadlock.
Definition at line 752 of file fe-cancel.c.
References conn, PQExpBufferData::data, pg_conn::errorMessage, pg_conn::errorReported, fb(), PQExpBufferData::len, PQExpBufferData::maxlen, PGINVALID_SOCKET, PQcancel(), PQfreeCancel(), PQgetCancel(), pg_conn::sock, and strlcpy().
Referenced by test_cancel().
Definition at line 5330 of file fe-connect.c.
References conn, PGEventConnReset::conn, pg_conn::events, fb(), i, pg_conn::nEvents, PGEvent::passThrough, PGEVT_CONNRESET, pqClosePGconn(), pqConnectDBComplete(), pqConnectDBStart(), and PGEvent::proc.
Referenced by CheckConnection().
|
extern |
Definition at line 5382 of file fe-connect.c.
References conn, PGEventConnReset::conn, pg_conn::events, fb(), i, pg_conn::nEvents, PGEvent::passThrough, PGEVT_CONNRESET, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PQconnectPoll(), and PGEvent::proc.
Definition at line 5363 of file fe-connect.c.
References conn, pqClosePGconn(), and pqConnectDBStart().
|
extern |
Definition at line 3436 of file fe-exec.c.
References lengthof, libpq_gettext, and pgresStatus.
Referenced by BaseBackup(), confirm_result_status_impl(), consume_null_result_impl(), process_result(), test_pipeline_abort(), test_pipelined_insert(), test_prepared(), test_singlerowmode(), test_transaction(), and try_complete_step().
Definition at line 544 of file fe-exec.c.
References fb(), OOM_result, and pqResultAlloc().
Referenced by PQsetResultAttrs().
Definition at line 3483 of file fe-exec.c.
References pgMessageField::contents, pg_result::errFields, and fb().
Definition at line 3444 of file fe-exec.c.
References pg_result::errMsg.
Definition at line 669 of file fe-exec.c.
References pg_result::memorySize.
|
extern |
Definition at line 3428 of file fe-exec.c.
References PGRES_FATAL_ERROR, and pg_result::resultStatus.
|
extern |
Definition at line 3452 of file fe-exec.c.
References fb(), initPQExpBuffer(), libpq_gettext, PGRES_FATAL_ERROR, PGRES_NONFATAL_ERROR, pqBuildErrorMessage3(), PQExpBufferDataBroken, pg_result::resultStatus, and termPQExpBuffer().
Referenced by exec_command_errverbose().
Definition at line 2586 of file fe-exec.c.
References conn, PqMsg_Close, and PQsendTypedCommand().
Referenced by test_prepared().
Definition at line 2573 of file fe-exec.c.
References conn, PqMsg_Close, PQsendTypedCommand(), and stmt.
Referenced by ExecQueryAndProcessResults(), and test_prepared().
Definition at line 2521 of file fe-exec.c.
References conn, PqMsg_Describe, and PQsendTypedCommand().
Referenced by test_prepared().
Definition at line 2508 of file fe-exec.c.
References conn, PqMsg_Describe, PQsendTypedCommand(), and stmt.
Referenced by test_prepared().
Definition at line 3388 of file fe-exec.c.
References pg_conn::asyncStatus, conn, CONNECTION_OK, libpq_append_conn_error(), PGASYNC_IDLE, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, PqMsg_Flush, pqPipelineFlush(), pqPutMsgEnd(), pqPutMsgStart(), and pg_conn::status.
Referenced by ExecQueryAndProcessResults(), test_nosync(), test_pipeline_idle(), test_singlerowmode(), and test_uniqviol().
Definition at line 3299 of file fe-exec.c.
References conn, and pqPipelineSyncInternal().
Referenced by ExecQueryAndProcessResults(), executeMetaCommand(), and test_multi_pipelines().
|
extern |
Definition at line 1553 of file fe-exec.c.
References conn, fb(), i, libpq_append_conn_error(), PGQUERY_PREPARE, pg_conn::pipelineStatus, PQ_PIPELINE_OFF, PQ_QUERY_PARAM_MAX_LIMIT, pqAllocCmdQueueEntry(), pqAppendCmdQueueEntry(), PqMsg_Parse, PqMsg_Sync, pqPipelineFlush(), pqPutInt(), pqPutMsgEnd(), pqPutMsgStart(), pqPuts(), pqRecycleCmdQueueEntry(), PQsendQueryStart(), PGcmdQueueEntry::query, and PGcmdQueueEntry::queryclass.
Referenced by ExecQueryAndProcessResults(), PQprepare(), prepare_foreign_modify(), test_pipelined_insert(), test_prepared(), and test_transaction().
Definition at line 1433 of file fe-exec.c.
References conn, and PQsendQueryInternal().
Referenced by advanceConnectionState(), BaseBackup(), dblink_send_query(), do_sql_command_begin(), ExecQueryAndProcessResults(), fetch_more_data_begin(), libpqsrv_exec(), pgfdw_exec_cleanup_query_begin(), pgfdw_exec_query(), pgfdw_finish_pre_commit_cleanup(), PQexec(), process_slot(), run_command(), run_permutation(), run_reindex_command(), run_vacuum_command(), sendCommand(), storeQueryResult(), and test_disallowed_in_pipeline().
|
extern |
Definition at line 1509 of file fe-exec.c.
References conn, fb(), libpq_append_conn_error(), PQ_QUERY_PARAM_MAX_LIMIT, PQsendQueryGuts(), and PQsendQueryStart().
Referenced by create_cursor(), ExecQueryAndProcessResults(), execute_dml_stmt(), libpqsrv_exec_params(), PQexecParams(), send_cancellable_query_impl(), sendCommand(), test_multi_pipelines(), test_nosync(), test_pipeline_abort(), test_pipeline_idle(), test_pipelined_insert(), test_simple_pipeline(), test_singlerowmode(), and test_transaction().
|
extern |
Definition at line 1650 of file fe-exec.c.
References conn, fb(), libpq_append_conn_error(), PQ_QUERY_PARAM_MAX_LIMIT, PQsendQueryGuts(), and PQsendQueryStart().
Referenced by ExecQueryAndProcessResults(), execute_foreign_modify(), PQexecPrepared(), process_queued_fetch_requests(), sendCommand(), test_pipelined_insert(), test_transaction(), and test_uniqviol().
Definition at line 7694 of file fe-connect.c.
References conn, CONNECTION_BAD, pg_conn::status, and pg_conn::sversion.
Referenced by _check_database_version(), appendStringLiteralConn(), BaseBackup(), CheckServerVersionForStreaming(), configure_remote_session(), ConnectDatabase(), CreateReplicationSlot(), dumpRoleMembership(), GenerateRecoveryConfig(), GetConnection(), initPopulateTable(), libpqrcv_create_slot(), libpqrcv_server_version(), libpqrcv_startstreaming(), main(), postgresAcquireSampleRowsFunc(), postgresImportForeignSchema(), postgresReScanForeignScan(), prepare_vacuum_command(), printVersion(), processSQLNamePattern(), ReceiveTarFile(), reindex_one_database(), RetrieveDataDirCreatePerm(), RetrieveWalSegSize(), RunIdentifySystem(), StartLogStreamer(), StreamLog(), SyncVariables(), vacuum_one_database(), vacuumlo(), and WriteRecoveryConfig().
|
extern |
Definition at line 1595 of file fe-auth.c.
References PQauthDataHook, and PQdefaultAuthDataHook().
Referenced by main().
Definition at line 1982 of file fe-exec.c.
References canChangeResultMode(), conn, pg_conn::maxChunkSize, pg_conn::partialResMode, and pg_conn::singleRowMode.
Referenced by ExecQueryAndProcessResults(), and test_singlerowmode().
Definition at line 7802 of file fe-connect.c.
References conn, CONNECTION_OK, encoding, fb(), pg_encoding_to_char, pg_get_encoding_from_locale(), PGRES_COMMAND_OK, PQclear, PQexec(), pg_result::resultStatus, sprintf, and pg_conn::status.
Referenced by dblink_connect(), dblink_get_conn(), exec_command_encoding(), main(), setup_connection(), test_gb18030_page_multiple(), and test_one_vector().
|
extern |
Definition at line 2245 of file fe-connect.c.
References conn, CONNECTION_BAD, connectOptions1(), dbName, pg_conn::dbName, fb(), free, libpq_append_conn_error(), pghost, pg_conn::pghost, pg_conn::pgoptions, pg_conn::pgpass, pgport, pg_conn::pgport, pg_conn::pguser, pqConnectDBComplete(), pqConnectDBStart(), pqConnectOptions2(), pqMakeEmptyPGconn(), recognized_connection_string(), and pg_conn::status.
|
extern |
Definition at line 7856 of file fe-connect.c.
References conn, fb(), PQSHOW_CONTEXT_ERRORS, and pg_conn::show_context.
Referenced by show_context_hook(), and SyncVariables().
|
extern |
Definition at line 7844 of file fe-connect.c.
References conn, fb(), PQERRORS_DEFAULT, and pg_conn::verbosity.
Referenced by main(), SyncVariables(), and verbosity_hook().
Definition at line 3961 of file fe-exec.c.
References arg, pg_conn::cmd_queue_head, conn, CONNECTION_BAD, fb(), pg_conn::nonblocking, pqClearConnErrorState, pqFlush(), pg_conn::status, and true.
Referenced by test_cancel(), test_pipelined_insert(), and test_uniqviol().
|
extern |
Definition at line 7885 of file fe-connect.c.
References arg, conn, fb(), pg_conn::noticeHooks, PGNoticeHooks::noticeProc, and PGNoticeHooks::noticeProcArg.
Referenced by ConnectDatabaseAhx(), do_connect(), main(), main(), and test_pipeline_idle().
|
extern |
Definition at line 7868 of file fe-connect.c.
References arg, conn, fb(), pg_conn::noticeHooks, PGNoticeHooks::noticeRec, and PGNoticeHooks::noticeRecArg.
Referenced by connect_pg_server(), dblink_connect(), dblink_get_conn(), ECPGconnect(), and libpqrcv_connect().
|
extern |
Definition at line 250 of file fe-exec.c.
References pg_result::attDescs, pg_result::binary, fb(), pgresAttDesc::format, i, pgresAttDesc::name, pg_result::null_field, pg_result::numAttributes, OOM_result, PQresultAlloc(), and pqResultStrdup().
Referenced by PQcopyResult().
Definition at line 1965 of file fe-exec.c.
References canChangeResultMode(), conn, pg_conn::maxChunkSize, pg_conn::partialResMode, and pg_conn::singleRowMode.
Referenced by process_queued_fetch_requests(), storeQueryResult(), test_pipeline_abort(), and test_singlerowmode().
|
extern |
Definition at line 1928 of file fe-secure-openssl.c.
References PQsslKeyPassHook.
Definition at line 64 of file fe-trace.c.
References conn, fb(), pg_conn::Pfdebug, and pg_conn::traceFlags.
Referenced by main().
Definition at line 453 of file fe-exec.c.
References check_field_number(), errmsg(), fb(), i, pgresAttValue::len, len, libpq_gettext, pg_result::noticeHooks, pg_result::ntups, pg_result::null_field, NULL_LEN, pg_result::numAttributes, OOM_result, pqAddTuple(), pqInternalNotice(), pqResultAlloc(), pg_result::tuples, and value.
Referenced by PQcopyResult().
Definition at line 7730 of file fe-connect.c.
References pg_conn::altsock, conn, PGINVALID_SOCKET, and pg_conn::sock.
Referenced by connect_slot(), CopyStreamPoll(), libpqrcv_receive(), libpqsrv_connect_internal(), libpqsrv_get_result(), main(), pgfdw_conn_check(), pgfdw_get_cleanup_result(), postgresForeignAsyncConfigureWait(), PQcancelSocket(), StreamLogicalLog(), test_nosync(), test_pipelined_insert(), test_uniqviol(), threadRun(), try_complete_step(), wait_on_slots(), wait_on_slots(), and wait_until_connected().
|
extern |
Definition at line 1141 of file fe-misc.c.
References end_time, fb(), now(), PQgetCurrentTimeUSec(), and select.
Referenced by pqSocketCheck(), timer_expired(), and wait_until_connected().
Definition at line 1671 of file fe-secure-openssl.c.
References conn, data, fb(), len, and snprintf.
Referenced by exec_command_conninfo(), print_ssl_library(), and printSSLInfo().
Definition at line 1644 of file fe-secure-openssl.c.
Definition at line 103 of file fe-secure.c.
References conn, and pg_conn::ssl_in_use.
Referenced by exec_command_conninfo(), and printSSLInfo().
Definition at line 1634 of file fe-secure-openssl.c.
|
extern |
Definition at line 7641 of file fe-connect.c.
References conn, CONNECTION_BAD, and pg_conn::status.
Referenced by check_prepare_conn(), connect_database(), connect_pg_server(), ConnectDatabase(), connectDatabase(), ConnectionUp(), connectToServer(), copy_connection(), dblink_connect(), dblink_get_conn(), discardAvailableResults(), discardUntilSync(), do_connect(), doConnect(), ecpg_raise_backend(), ECPGconnect(), GetConnection(), GetConnection(), getSQLErrorStatus(), getTransactionStatus(), libpqrcv_connect(), libpqrcv_receive(), libpqsrv_connect_internal(), libpqsrv_get_result_last(), main(), main(), pgfdw_conn_check(), pgfdw_finish_pre_commit_cleanup(), pgfdw_reset_xact_state(), PQcancelStatus(), process_query_result(), sql_conn(), start_postmaster(), test_cancel(), test_protocol_version(), and vacuumlo().
Definition at line 35 of file fe-trace.c.
References conn, fb(), pg_conn::Pfdebug, PQuntrace(), and pg_conn::traceFlags.
Referenced by main().
|
extern |
Definition at line 7649 of file fe-connect.c.
References pg_conn::asyncStatus, conn, CONNECTION_OK, PGASYNC_IDLE, PQTRANS_ACTIVE, PQTRANS_UNKNOWN, pg_conn::status, and pg_conn::xactStatus.
Referenced by dblink_open(), DisconnectDatabase(), disconnectDatabase(), ecpg_autostart_transaction(), ECPGsetcommit(), ECPGtrans(), ECPGtransactionStatus(), get_prompt(), getTransactionStatus(), pgfdw_abort_cleanup(), pgfdw_abort_cleanup_begin(), pgfdw_reset_xact_state(), SendQuery(), start_lo_xact(), and vacuumlo().
Definition at line 4617 of file fe-exec.c.
References fb(), free, get_hex(), i, ISFIRSTOCTDIGIT, ISOCTDIGIT, j, malloc, OCTVAL, realloc, and tmpbuf.
Definition at line 49 of file fe-trace.c.
References conn, fb(), pg_conn::Pfdebug, and pg_conn::traceFlags.
Referenced by PQtrace().
Definition at line 7546 of file fe-connect.c.
References conn, fb(), and pg_conn::pguser.
Referenced by do_connect(), exec_command_conninfo(), get_prompt(), main(), session_username(), and SyncVariables().