PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include "common/logging.h"
#include "fe_utils/cancel.h"
#include "fe_utils/query_utils.h"
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, pg_log_error, pg_log_error_detail, PGRES_COMMAND_OK, PQclear(), PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), and printf.
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, ResetCancelConn(), and SetCancelConn().
Referenced by cluster_one_database(), and run_reindex_command().
Definition at line 22 of file query_utils.c.
References conn, pg_log_error, pg_log_error_detail, PGRES_TUPLES_OK, PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), and printf.