contrib/postgres_fdw/connection.c
PGresult *
pgfdw_exec_query(PGconn *conn, const char *query)
{
	/*
	 * Submit a query.  Since we don't use non-blocking mode, this also can
	 * block.  But its risk is relatively small, so we ignore that for now.
	 */
	if (!PQsendQuery(conn, query))
		pgfdw_report_error(ERROR, NULL, conn, false, query);

	/* Wait for the result. */
	return pgfdw_get_result(conn, query);
}
/*
 * Submit a query and wait for the result.
 *
 * This function is interruptible by signals.
 *
 * Caller is responsible for the error handling on the result.
 */
Submit a query and wait for the result.
This function is interruptible by signals.

Caller is responsible for the error handling on the result.
Submit a query and wait for the result . This function is interruptible by signals . Caller is responsible for the error handling on the result .
PGresult *
pgfdw_exec_query(PGconn *conn, const char *query)
{
	if (!PQsendQuery(conn, query))
		pgfdw_report_error(ERROR, NULL, conn, false, query);
	return pgfdw_get_result(conn, query);
}
PGresult * pgfdw_exec_query ( PGconn * conn , const char * query ) { if ( ! PQsendQuery ( conn , query ) ) pgfdw_report_error ( ERROR , NULL , conn , false , query ) ; return pgfdw_get_result ( conn , query ) ; }
Submit a query and wait for the result.
Submit a query and wait for the result .
/*
	 * Submit a query.  Since we don't use non-blocking mode, this also can
	 * block.  But its risk is relatively small, so we ignore that for now.
	 */ /* Wait for the result. */