PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
PGresult * | executeQuery (PGconn *conn, const char *query, bool echo) |
void | executeCommand (PGconn *conn, const char *query, bool echo) |
bool | executeMaintenanceCommand (PGconn *conn, const char *query, bool echo) |
void executeCommand | ( | PGconn * | conn, |
const char * | query, | ||
bool | echo | ||
) |
Definition at line 47 of file query_utils.c.
References conn, exit(), pg_log_error, pg_log_error_detail, PGRES_COMMAND_OK, PQclear(), PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), printf, and res.
bool executeMaintenanceCommand | ( | PGconn * | conn, |
const char * | query, | ||
bool | echo | ||
) |
Definition at line 74 of file query_utils.c.
References conn, PGRES_COMMAND_OK, PQclear(), PQexec(), PQresultStatus(), printf, res, ResetCancelConn(), and SetCancelConn().
Referenced by cluster_one_database(), and run_reindex_command().
Definition at line 22 of file query_utils.c.
References conn, exit(), pg_log_error, pg_log_error_detail, PGRES_TUPLES_OK, PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), printf, and res.