1/*-------------------------------------------------------------------------
3 * Facilities for frontend code to query a databases.
5 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * src/fe_utils/query_utils.c
10 *-------------------------------------------------------------------------
19 * Run a query, return the results, exit program on failure.
44 * As above for a SQL command (which returns nothing).
69 * As above for a SQL maintenance command (returns command success).
70 * Command is executed with a cancel handler set, so Ctrl-C can
void ResetCancelConn(void)
void SetCancelConn(PGconn *conn)
void PQfinish(PGconn *conn)
char * PQerrorMessage(const PGconn *conn)
PGresult * PQexec(PGconn *conn, const char *query)
#define pg_log_error(...)
#define pg_log_error_detail(...)
void executeCommand(PGconn *conn, const char *query, bool echo)
PGresult * executeQuery(PGconn *conn, const char *query, bool echo)
bool executeMaintenanceCommand(PGconn *conn, const char *query, bool echo)