MCPcopy Create free account
hub / github.com/apache/cloudberry / PQconnectdb

Function PQconnectdb

src/interfaces/libpq/fe-connect.c:781–790  ·  view source on GitHub ↗

* PQconnectdb * * establishes a connection to a postgres backend through the postmaster * using connection information in a string. * * The conninfo string is either a whitespace-separated list of * * option = value * * definitions or a URI (refer to the documentation for details.) Value * might be a single value containing no whitespaces or a single quoted * string. If a single quo

Source from the content-addressed store, hash-verified

779 * call succeeded.
780 */
781PGconn *
782PQconnectdb(const char *conninfo)
783{
784 PGconn *conn = PQconnectStart(conninfo);
785
786 if (conn && conn->status != CONNECTION_BAD)
787 (void) connectDBComplete(conn);
788
789 return conn;
790}
791
792/*
793 * PQping

Callers 15

dblink_get_connFunction · 0.85
dblink_connectFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

PQconnectStartFunction · 0.85
connectDBCompleteFunction · 0.85

Tested by 10

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68