PostgreSQL Source Code
git master
|
#include "libpq-fe.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "storage/latch.h"
#include "utils/timestamp.h"
#include "utils/wait_event.h"
Go to the source code of this file.
Functions | |
static void | libpqsrv_connect_prepare (void) |
static void | libpqsrv_connect_internal (PGconn *conn, uint32 wait_event_info) |
static PGresult * | libpqsrv_get_result_last (PGconn *conn, uint32 wait_event_info) |
static PGresult * | libpqsrv_get_result (PGconn *conn, uint32 wait_event_info) |
static PGconn * | libpqsrv_connect (const char *conninfo, uint32 wait_event_info) |
static PGconn * | libpqsrv_connect_params (const char *const *keywords, const char *const *values, int expand_dbname, uint32 wait_event_info) |
static void | libpqsrv_disconnect (PGconn *conn) |
static PGresult * | libpqsrv_exec (PGconn *conn, const char *query, uint32 wait_event_info) |
static PGresult * | libpqsrv_exec_params (PGconn *conn, const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat, uint32 wait_event_info) |
static const char * | libpqsrv_cancel (PGconn *conn, TimestampTz endtime) |
|
inlinestatic |
Definition at line 386 of file libpq-be-fe-helpers.h.
References CHECK_FOR_INTERRUPTS, conn, error(), exit(), GetCurrentTimestamp(), MyLatch, now(), pchomp(), PG_END_TRY, PG_FINALLY, PG_TRY, PG_WAIT_CLIENT, PGRES_POLLING_OK, PGRES_POLLING_READING, PGRES_POLLING_WRITING, PQcancelCreate(), PQcancelErrorMessage(), PQcancelFinish(), PQcancelPoll(), PQcancelSocket(), PQcancelStart(), ResetLatch(), TimestampDifferenceMilliseconds(), WaitLatchOrSocket(), WL_EXIT_ON_PM_DEATH, WL_LATCH_SET, WL_SOCKET_READABLE, WL_SOCKET_WRITEABLE, and WL_TIMEOUT.
Referenced by dblink_cancel_query(), and pgfdw_cancel_query_begin().
Definition at line 66 of file libpq-be-fe-helpers.h.
References conn, libpqsrv_connect_internal(), libpqsrv_connect_prepare(), and PQconnectStart().
Referenced by dblink_connect(), and dblink_get_conn().
Definition at line 160 of file libpq-be-fe-helpers.h.
References CHECK_FOR_INTERRUPTS, conn, CONNECTION_BAD, CONNECTION_STARTED, MyLatch, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, PGRES_POLLING_WRITING, PQconnectPoll(), PQfinish(), PQsocket(), PQstatus(), ReleaseExternalFD(), ResetLatch(), WaitLatchOrSocket(), WL_EXIT_ON_PM_DEATH, WL_LATCH_SET, WL_SOCKET_CONNECTED, WL_SOCKET_READABLE, and WL_SOCKET_WRITEABLE.
Referenced by libpqsrv_connect(), and libpqsrv_connect_params().
|
inlinestatic |
Definition at line 84 of file libpq-be-fe-helpers.h.
References conn, libpqsrv_connect_internal(), libpqsrv_connect_prepare(), PQconnectStartParams(), and values.
Referenced by connect_pg_server().
|
inlinestatic |
Definition at line 131 of file libpq-be-fe-helpers.h.
References AcquireExternalFD(), ereport, errcode(), errdetail(), errhint(), errmsg(), and ERROR.
Referenced by libpqsrv_connect(), and libpqsrv_connect_params().
|
inlinestatic |
Definition at line 107 of file libpq-be-fe-helpers.h.
References conn, PQfinish(), and ReleaseExternalFD().
Referenced by connect_pg_server(), createNewConnection(), dblink_connect(), dblink_disconnect(), dblink_exec(), dblink_get_conn(), dblink_record_internal(), dblink_security_check(), and disconnect_pg_server().
|
inlinestatic |
Definition at line 256 of file libpq-be-fe-helpers.h.
References conn, libpqsrv_get_result_last(), and PQsendQuery().
Referenced by dblink_close(), dblink_exec(), dblink_fetch(), and dblink_open().
|
inlinestatic |
Definition at line 269 of file libpq-be-fe-helpers.h.
References conn, libpqsrv_get_result_last(), and PQsendQueryParams().
Definition at line 334 of file libpq-be-fe-helpers.h.
References CHECK_FOR_INTERRUPTS, conn, MyLatch, PQconsumeInput(), PQgetResult(), PQisBusy(), PQsocket(), ResetLatch(), WaitLatchOrSocket(), WL_EXIT_ON_PM_DEATH, WL_LATCH_SET, and WL_SOCKET_READABLE.
Referenced by dblink_record_internal(), libpqsrv_get_result_last(), and storeQueryResult().
Definition at line 290 of file libpq-be-fe-helpers.h.
References conn, CONNECTION_BAD, libpqsrv_get_result(), PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PGRES_COPY_BOTH, PGRES_COPY_IN, PGRES_COPY_OUT, PQclear(), PQresultStatus(), and PQstatus().
Referenced by libpqsrv_exec(), libpqsrv_exec_params(), and pgfdw_get_result().